Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-2
-
None
-
All
Description
//demo.groovy
public class A {
public A()
public A(String a) {}
public void communicate() {
System.out.println("Communicate");
}
}
class B {
public B()
public B(String a) {}
void communicate()
}
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
- duplicates
-
GROOVY-881 can't call this(string) in constructor
- Closed
-
GROOVY-638 MissingMethodException while using 'this(aString)' Java construct.
- Closed