Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-5
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
in GroovyClassLoader#expandClassPath the ClassLoader will try to expand the absolute path from C:\ to \C:\ on win32.
Here's the fix:
private void expandClassPath(List pathList, String base, String classpath) {
paths = classpath.split(File.pathSeparator);
for (int i = 0; i < paths.length; i++) {
File path = null;
if ("".equals(base))
{ path = new File(paths[i]); }else
{ path = new File(base, paths[i]); } if (path.exists()) {
if (!path.isDirectory()) {
try
catch (IOException e)
{ // Bad jar, ignore continue; }} else
{ pathList.add(paths[i]); } }
}
}
Sorry, I don't know how to create a real diff. This also includes an NPE fix whenever a jar file is missing a Class-Path manifest entry we are not going to try to expand the classpath.
Activity
james strachan
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 1.0-rc1 [ 10510 ] | |
| Resolution | Fixed [ 1 ] |
Patch applied, many thanks!