Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-4
-
None
-
Linux FC2/jdk 1.5 SUN
Description
The -cp example does not work http://groovy.codehaus.org/Scripts+and+Classes
with jsr-04. It works fine with jsr03?
//Callee.groovy
class Callee {
void hello()
}
//Caller.groovy
c = new Callee()
c.hello()
groovy -cp . Caller
Caller.groovy: 2: unable to resolve class Callee
@ line 2, column 8.
Callee c = new Callee();
^
Caller.groovy: 2: unable to resolve class Callee
@ line 2, column 12.
Callee c = new Callee();
Also, there is a small bug in the example "groovy -cp . caller" should be "groovy -cp Caller"