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

PARSER BUG: Tried to configure ArgumentListExpression with null Node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-3
    • parser-antlr2
    • None
    • All

    Description

      //demo.groovy

      public class A {
      public A()

      {this("");}


      public A(String a) {}
      public void communicate() {
      System.out.println("Communicate");
      }
      }
      class B {
      public B()

      {this('')}


      public B(String a) {}
      void communicate()

      {println "heelo"}


      }

      a = new A()
      a.communicate();

      b = new B();
      b.communicate();

      //end of demo

      run the file and get the following error:

      e:\groovy\demo.groovy: -1: PARSER BUG: Tried to configure org.codehaus.groovy.ast.expr.ArgumentListExpression with null Node. File: e:\groovy\demo.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: e:\groovy\demo.groovy @ line -1, column -1.
      at org.codehaus.groovy.antlr.AntlrParserPlugin.buildAST(AntlrParserPlugin.java:176)
      at org.codehaus.groovy.control.SourceUnit.convert(SourceUnit.java:315)
      at org.codehaus.groovy.control.CompilationUnit$2.call(CompilationUnit.java:536)
      at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:792)
      at org.codehaus.groovy.control.CompilationUnit.convert(CompilationUnit.java:523)
      at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:452)
      at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)
      at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:221)
      at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:171)
      at groovy.lang.GroovyShell$1.run(GroovyShell.java:266)
      at java.security.AccessController.doPrivileged(Native Method)
      at groovy.lang.GroovyShell.run(GroovyShell.java:264)
      at groovy.lang.GroovyShell.run(GroovyShell.java:208)
      at groovy.ui.GroovyMain.processOnce(GroovyMain.java:450)
      at groovy.ui.GroovyMain.run(GroovyMain.java:276)
      at groovy.ui.GroovyMain.process(GroovyMain.java:262)
      at groovy.ui.GroovyMain.main(GroovyMain.java:138)
      at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:101)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:429)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.codehaus.groovy.antlr.ASTRuntimeException: PARSER BUG: Tried to configure org.codehaus.groovy.ast.expr.ArgumentListExpression with null Node
      at org.codehaus.groovy.antlr.AntlrParserPlugin.configureAST(AntlrParserPlugin.java:2065)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.arguments(AntlrParserPlugin.java:1760)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.constructorCallExpression(AntlrParserPlugin.java:1712)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.expressionSwitch(AntlrParserPlugin.java:1065)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.expression(AntlrParserPlugin.java:1035)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.statement(AntlrParserPlugin.java:753)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.statementListNoChild(AntlrParserPlugin.java:769)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.statementList(AntlrParserPlugin.java:762)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.constructorDef(AntlrParserPlugin.java:432)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.objectBlock(AntlrParserPlugin.java:353)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.classDef(AntlrParserPlugin.java:335)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.convertGroovy(AntlrParserPlugin.java:197)
      at org.codehaus.groovy.antlr.AntlrParserPlugin.buildAST(AntlrParserPlugin.java:173)
      ... 25 more

      1 Error

      Attachments

        Issue Links

          Activity

            People

              phkim Kim, Pilho
              wangbin wangbin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: