4 Replies Latest reply on Nov 14, 2006 7:24 PM by jason.greene

    Problem with VFS AbstractJarHandler / JarEntryHandler

    jason.greene

      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