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

`String | []` represented as ClassExpression in AST (causing problems in Spock data tables)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.9, 2.1.1
    • 2.1.3
    • Compiler
    • None

    Description

      The expression String | [] is represented as a BinaryExpression after the conversion phase (as expected), but as a ClassExpression after the semantic analysis phase (as if it was String[]). This causes problems in Spock data tables. Same with other binary operators (e.g. String && []).

      Attachments

        Activity

          People

            melix C├ędric Champeau
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: