groovy
  1. groovy
  2. GROOVY-4480

Parsing seems to have changed in 1.8

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8-rc-2, 1.9-beta-1
    • Component/s: parser
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Running this script on the webconsole used to work prior to 1.8

      http://groovyconsole.appspot.com/script/192001

      However, now it fails with an exception:

      Script1.groovy: 83: unexpected token: else @ line 83, column 67.
         1).type == type2 ) token += 2 else false
      

      To get the script working again, you need to change line 83 from:

          if( get(0).type == type1 && get(1).type == type2 ) token += 2 else false
      

      to

          if( get(0).type == type1 && get(1).type == type2 ) { token += 2 } else false
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            Tim Yates
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: