Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-209

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Later
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: