|
[
Permlink
| « Hide
]
Kohsuke Kawaguchi added a comment - 05/Aug/06 07:02 PM
Patch for this change.
Can you supply a test case (just the expression String should do) where this happens? Usually, I see oacj.parser.ParseException if the expression is malformed. It would seem more appropriate to (re)use that here, if needed, rather than defining a new exception.
For example, "a?b:c" should do, since the lexer wouldn't understand '?'.
I overlooked that existing exception, and I agree that it's better to reuse it. Thanks, fixed in r429169:
http://svn.apache.org/viewvc?view=rev&revision=429169 Reused the existing ParseException and added a couple of test cases to ensure the Error is rethrown as this Exception. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||