Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4821

Multiple assignment triggers internal error during 'conversion' phase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.8.0
    • 1.8.0
    • Compiler
    • None
    • Windows XP, Groovy 1.8.0 installed with Windows installer

    Description

      The following one-liner script using multiple assignment crashes Groovy:

      def (a,b) = [1,2]

      I.e. when I type in console

      groovy A.groovy

      I get an error message:

      Caught: BUG! exception in phase 'conversion' in source unit 'A.groovy'
      org.codehaus.groovy.ast.expr.ArgumentListExpression cannot be cast to org.codehaus.groovy.ast.expr.VariableExpression

      Interesting that the bug affects only Groovy 1.8.0 installed with Windows Installer. Groovy installed from ZIP works as expected.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            vladykin Alexey Vladykin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: