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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • 1.3.1
    • None
    • Engine
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: