You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <ji...@apache.org> on 2006/10/12 22:59:36 UTC
[jira] Resolved: (VELOCITY-209) Encountered ")" Was expecting one
of: ")"
[ http://issues.apache.org/jira/browse/VELOCITY-209?page=all ]
Henning Schmiedehausen resolved VELOCITY-209.
---------------------------------------------
Fix Version/s: 2.0
(was: 1.5)
Resolution: Later
Assignee: (was: Velocity-Dev List)
This is related to BigDecimal not being a reference and getting lost in the parse process. This is reproducable but is just as VELOCITY-280 it doesn't seem to be easily solvable. As with VELOCITY-280, is someone comes up with a patch to the Parser.jj file to fix this, I'm fine to apply it to the 1.5 release, else it goes to the "great parser rewrite" in 2.0
> Encountered ")" Was expecting one of: ")"
> -------------------------------------------
>
> Key: VELOCITY-209
> URL: http://issues.apache.org/jira/browse/VELOCITY-209
> Project: Velocity
> Issue Type: Bug
> Components: Source
> Affects Versions: 1.3.1
> Environment: Operating System: All
> Platform: PC
> Reporter: Mike Kienenberger
> Priority: Minor
> Fix For: 2.0
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org