Author Login
Post Reply
I'm currently using Groovy 1.7.1 on Ubuntu. The problem I am having is
that when I import a script I am getting the following error:
Caught: BUG! exception in phase 'class generation' in source unit
'/home/bgilbert/Desktop/Bar.groovy' ClassNode#getTypeClass for Foo is
called before the type class is set
This bug can be reproduced as follows:
Foo.groovy:
static def foo() {
println 'Hello from foo!'
}
Bar.groovy:
import Foo
Foo.foo()
Running 'groovy Bar.groovy' with both files in the same directory
throws an exception with groovy 1.7.1, but not with 1.7.0:
bgilbert@(protected)
Caught: BUG! exception in phase 'class generation' in source unit
'/home/bgilbert/Desktop/Bar.groovy' ClassNode#getTypeClass for Foo is
called before the type class is set
bgilbert@(protected)
Hello from foo!
Is this a bug, and should I file a bug report, or is this change in
functionality intentional?
Thanks!
Bryan
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email