You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2003/09/30 22:52:27 UTC
DO NOT REPLY [Bug 23532] New: -
Encountered ")" Was expecting one of: ")"
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23532>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23532
Encountered ")" Was expecting one of: ")"
Summary: Encountered ")" Was expecting one of: ")"
Product: Velocity
Version: 1.3.1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Minor
Priority: Other
Component: Source
AssignedTo: velocity-dev@jakarta.apache.org
ReportedBy: mkienenb@alaska.net
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.