The code in `sun.net.www.protocol.jrt.JavaRuntimeURLConnection` supports the URL connection for the `jrt:` URI scheme. The intent is to allow URIs such as "jrt:/java.base/java/lang/Object.class" to return a resource (e.g. class bytes) from the running JVM.
It's implementation uses `ImageLocation` internally. It would be better to use `ImageReader#Node` to allow ImageLocation be further encapsulated in the future.
Currently both URIs:
* "jrt:/modules/java.base/java/lang"
* "jrt:/packages/java.lang"
connect to a resource. It would be better to throw.
It's implementation uses `ImageLocation` internally. It would be better to use `ImageReader#Node` to allow ImageLocation be further encapsulated in the future.
Currently both URIs:
* "jrt:/modules/java.base/java/lang"
* "jrt:/packages/java.lang"
connect to a resource. It would be better to throw.
- links to
-
Review(master) openjdk/jdk/25871