Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.0-JSR-4
-
None
-
None
-
Java 5 only
Description
Posted on behalf of Stefan Roock
try this (is for WinXp command shell, adapt for others)
set CLASSPATH=.
echo class Bla{ def bla(){1}} > Bla.groovy
groovy -e "assert 1==new Bla().bla()"
it works fine with JDK 1.4
with JDK 1.5 you get
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, script_from_command_line: 1: unable to resolve class Bla
@ line 1, column 11.