Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
-
Patch
Description
I have two scripts in a directory under C:\Documents and Settings:
A.groovy:
this.class.classLoader.loadClass("B", true, false, true)
and B.groovy which contains a simple (arbitrary) script.
A.groovy fails to find the "B" class. It gets as far as the GroovyClassLoader.getSourceFile, which successfully locates the resource URL "file:/C:/Documents%20and%20Settings/.../B.groovy". However, it then tries to turn this into a File on the line:
File path = new File(ret.getFile()).getParentFile();
This fails, as java.io.File expects the unescaped filename of "C:/Documents and Settings/...", i.e. with the %20s converted to spaces.
Attachments
Attachments
Issue Links
- is duplicated by
-
GROOVY-1833 blank in path makes calling one groovy file from another fail
- Closed
- is related to
-
GROOVY-1833 blank in path makes calling one groovy file from another fail
- Closed