On Mon, 20 Apr 2026 09:25:36 GMT, Alan Bateman <[email protected]> wrote:
> `open("META-INF/preview/java/lang/Byte.class")` would be unusual but it will
> (at least in the lword) branch, locate the class bytes for the version of
> j.l.Byte compiled with preview features enabled.
Exactly.
> I'm not sure if you are suggesting this should also be hidden but do need to
> have a story on the consistently when the full list of resources are
> enumerated with `ModuleReader::list`.
The story of consistency is what I'd suggest to improve (post JEP 401). If
`list` doesn't show it, then it should also not be possible to get the input
stream via `open`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29414#discussion_r3109660506