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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.9, 2.1.1
    • Fix Version/s: 2.1.3
    • Component/s: Compiler
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: