Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.0-JSR-2
-
None
-
None
-
JSR02, Ant v1.6.4
Description
This simple code does not compile with groovyc ant task, nor does it compile from within eclipse (the groovy eclipse plugin):
package groovy.test;
import groovy.mock.GroovyMock
class UsingExternalLib {
static void main(args)
}
The error reported from ant is:
General error during class generation: No such class: groovy.mock.GroovyMock in cast for class: groovy.test.UsingExternalLib. At [-1:-1] /home/meling/work/runtime-EclipseApplication/Test/src/groovy/test/UsingExternalLib.groovy
The same message is also reported from the eclipse groovy plugin.
The ODD THING is that the groovyc command line compiles this code just fine.
In all cases I used jsr-02 version.
Also, if I comment the first line within main(), it does compile also with ant and eclipse. Thus, it appears that the compiler is not dealing with declaring type on the lhs...