Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta-1
-
None
-
None
-
WinXP, Java1.4
Description
I've been using groovy for about 20 minutes, so my apologies if this is clearly user error.
I downloaded the SwingDemo.groovy script, and tried to execute it. It failed and produced a stack trace. Looking at the code I can't figure out how it ever would have worked, but it is late on a Friday, so maybe it's just me.
I received the following error output:
groovy SwingDemo.groovy
Caught: org.codehaus.groovy.runtime.NoSuchClassException: No such class: TableDmo in constructor call. At [-1:-1] SwingDemo.groovy
org.codehaus.groovy.runtime.NoSuchClassException: No such class: TableDemo in cnstructor call. At [-1:-1] SwingDemo.groovy
at org.codehaus.groovy.classgen.ClassGenerator.checkValidType(ClassGeneator.java:2114)
at org.codehaus.groovy.classgen.ClassGenerator.visitConstructorCallExprssion(ClassGenerator.java:1152)
at org.codehaus.groovy.ast.expr.ConstructorCallExpression.visit(ConstrutorCallExpression.java:67)
at org.codehaus.groovy.classgen.ClassGenerator.evaluateEqual(ClassGenertor.java:1781)
at org.codehaus.groovy.classgen.ClassGenerator.visitBinaryExpression(ClssGenerator.java:804)
at org.codehaus.groovy.ast.expr.BinaryExpression.visit(BinaryExpressionjava:76)
at org.codehaus.groovy.classgen.ClassGenerator.visitExpressionStatementClassGenerator.java:790)
at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStaement.java:70)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.jav:75)
at org.codehaus.groovy.classgen.ClassGenerator.visitMethod(ClassGeneratr.java:295)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:354)
at org.codehaus.groovy.classgen.ClassGenerator.visitClass(ClassGenerato.java:231)
at org.codehaus.groovy.classgen.CompilerFacade.generateClass(CompilerFaade.java:112)
at org.codehaus.groovy.classgen.CompilerFacade.parseClass(CompilerFacad.java:151)
at org.codehaus.groovy.classgen.CompilerFacade.parseClass(CompilerFacad.java:84)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:104)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:91)
at groovy.lang.GroovyShell.run(GroovyShell.java:154)
at groovy.lang.GroovyShell.main(GroovyShell.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpljava:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
at org.codehaus.classworlds.Launcher.main(Launcher.java:474)