Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8166914

URLClassLoader spec needs to mention that it's MR-aware

XMLWordPrintable

    • b148
    • Not verified

      It seems that URLClassLoader became Mr.Jar-friendly (JEP#238). At least this could be easily checked via findResource() method for example.
      ===
         URLClassLoader urlCL = new URLClassLoader(new URL[]{new URL("file:///D:/mr_jar_1.jar")});
         System.out.println("resource = " + urlCL.findResource("text.txt"));
      ===

      When running with JDK9 the output is:

      resource = jar:file:/D:/mr_jar_1.jar!/META-INF/versions/9/text.txt

      However its spec http://download.java.net/java/jdk9/docs/api/java/net/URLClassLoader.html
       seems to be completely silent about JEP#238 support.

            psandoz Paul Sandoz
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: