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

Parser fails when parentheses omitted from constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-JSR-6
    • parser
    • None

    Description

      new Object.f{}

      produces

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, test.groovy: -1: PARSER BUG: Tried to configure org.codehaus.groovy.ast.expr.ArgumentListExpression with null Node. File: test.groovy @ line -1, column -1.org.codehaus.groovy.antlr.ASTParserException: PARSER BUG: Tried to configure org.codehaus.groovy.ast.expr.ArgumentListExpression with null Node. File: test.groovy @ line -1, column -1.
      at org.codehaus.groovy.antlr.AntlrParserPlugin.buildAST(AntlrParserPlugin.java:183)
      at org.codehaus.groovy.control.SourceUnit.convert(SourceUnit.java:313)
      at org.codehaus.groovy.control.CompilationUnit$3.call(CompilationUnit.java:615)

      The method call taking a closure seems to be needed to trigger this bug

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: