When a URL is built for a JAR entry that is a directory, the trailing slash is removed.
Without the slash, URLClassLoader will reject it as a valid classpath entry.
Can anyone see a problem with using the non-stripped entry name for construction of the
URL?
This would also fix the following:
| // Question: Why doesn't this work properly?
| // URL url = new URL(parent.toURL(), entry.getName());
| URL url = getURL(parent, entryName);
|
-Jason
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985315#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...