On Mon, 30 Mar 2026 09:21:29 GMT, David Beaumont <[email protected]> wrote:

>> src/java.base/share/classes/jdk/internal/jimage/ResourceEntries.java line 33:
>> 
>>> 31:  *
>>> 32:  * <p>This API is designed only for use by the jlink classes, which 
>>> read the raw
>>> 33:  * jimage files. Use the {@link ImageReader} API to read jimage 
>>> contents at
>> 
>> "read the raw jimage files" is confusing as there is only one jimage file 
>> that the jlink tool generates. Is the comment about the "jimage" tool rather 
>> than "jlink" tool?
>
> It's used by JRTArchive, which is used by `linkableRuntimeImage` in 
> `JlinkTask`.
> This needs to read resources "raw" without reference to preview mode.

I updated the comment.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29414#discussion_r3065040580

Reply via email to