Velocity
  1. Velocity
  2. VELOCITY-209

Encountered ")" Was expecting one of: ")"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Later
    • Affects Version/s: 1.3.1
    • Fix Version/s: 2.x
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Mike Kienenberger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development