Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
1.3.1
-
None
-
None
-
Operating System: All
Platform: PC
-
23532
Description
The following velocity directive (which IS NOT proper code and should create a
meaningful error)
#if ( (1 == $currentAccount.getAmountDue().compareTo(BigDecimal.valueOf(0)))
&& ($currentAccount.isAccountStatusActive()) && (0 ==
$currentAccount.scheduledPaymentList().size()) )
gives this error:
Encountered ")" at line 27, column 75.
Was expecting one of:
"," ...
")" ...
...
...
Handcopied from veloedit in Eclipse (a little clearer):
Encountered ")" at line 27, column 75. [After BigDecimal.valueOf(0)]
Was expecting one of:
"," ...
")" ...
<WHITESPACE> ...
<DOT> ...
The error thrown is internally-inconsistent (the parser found a right-paren,
but expected to find a right-paren) and useless.