The JLink classes currently use the ImageReader API for reading the content of the system image.
With preview mode, this is not longer a valid approach, since ImageReader now hides preview classes/resources from the view presented.
Exactly equivalent to how JAR files require a "raw" view when used by JLink, the jimage files file also require one.
Specifically, this will fix an error in:
test/jdk/tools/jlink/runtimeImage/PackagedModulesVsRuntimeImageLinkTest.java
which relies on JlinkTask and fails when used with preview resources present.
With preview mode, this is not longer a valid approach, since ImageReader now hides preview classes/resources from the view presented.
Exactly equivalent to how JAR files require a "raw" view when used by JLink, the jimage files file also require one.
Specifically, this will fix an error in:
test/jdk/tools/jlink/runtimeImage/PackagedModulesVsRuntimeImageLinkTest.java
which relies on JlinkTask and fails when used with preview resources present.