You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the file "/modules/java.base/java/lang/Object.class" in the jrt file system. If a tool has a Path to this file then invoking its toUri method should create the URI "jrt:/java.base/java/lang/Object.class". Unfortunately, due to a bug (the bug exists in JDK 9, 10, 11, 12), it yields the URI "jrt:/modules/java.base/java/lang/Object.class". This URI cannot be used with the jrt protocol handler (URL::openStream will fail with an IOException because module "modules" is not found).
Now consider the URI "jrt:/java.base/java/lang/Object.class". If Path.of(URI) is used to create a java.nio.file.Path from this URI then the resulting jrt file path will be "/java.base/java/lang/Object.class" and so will not locate a file in the jrt file system.
https://openjdk.org/jeps/220
#47
The text was updated successfully, but these errors were encountered: