[lworld] RFR: 8377162: [lworld] getResourceAsStream() doesn't work in preview mode for exploded images [v5]
Alan Bateman
alanb at openjdk.org
Fri Feb 20 13:49:27 UTC 2026
On Thu, 19 Feb 2026 20:15:14 GMT, David Beaumont <duke at openjdk.org> wrote:
>> Allow exploded module readers created for exploded system images to support preview mode.
>
> David Beaumont has updated the pull request incrementally with one additional commit since the last revision:
>
> Review feedback
test/jdk/jdk/internal/jrtfs/ClassResourcesParityTest.java line 74:
> 72: String relPath = jrtClassFile.subpath(2, jrtClassFile.getNameCount()).toString();
> 73: String fqn = relPath.substring(0, relPath.length() - CLASS_SUFFIX.length()).replace('/', '.');
> 74: String baseName = fqn.substring(fqn.lastIndexOf('.') + 1);
This is fine, just FYI that JAVA_BASE.relativize(jrtClassFile) is another slicker way to get the relative path from /module/java.base to the resource.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/2032#discussion_r2833277850
More information about the valhalla-dev
mailing list