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

BUG! exception on spread expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 1.1-beta-1, 1.1-beta-2
    • 1.1-beta-3
    • class generator
    • None

    Description

      A duck typing check like the following causes an internal error.

      groovy> x = 0; try

      { *x }

      catch (IllegalArgumentException)

      { "not spreadable" }

      groovy> go
      Caught: BUG! exception in phase 'class generation' in source unit 'CommandLine.groovy' SpreadExpression should not be visited here

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            jhermann Jürgen Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: