src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/FileSupport.java
changeset 58387 c5b80da6b561
parent 52910 583fd71c47d6
child 58533 46b0b7fe255c
equal deleted inserted replaced
58386:693c1eb29b8d 58387:c5b80da6b561
    57 
    57 
    58     private static URI makeJarFileURI(Path path) {
    58     private static URI makeJarFileURI(Path path) {
    59         try {
    59         try {
    60             String name = path.toAbsolutePath().toString();
    60             String name = path.toAbsolutePath().toString();
    61             name = name.replace('\\', '/');
    61             name = name.replace('\\', '/');
    62             return new URI("jar:file:///" + name + "!/");
    62             return new URI("jar:file", null, "///" + name + "!/", null);
    63         } catch (URISyntaxException e) {
    63         } catch (URISyntaxException e) {
    64             throw new InternalError(e);
    64             throw new InternalError(e);
    65         }
    65         }
    66     }
    66     }
    67 
    67