On Fri, 17 Apr 2026 16:42:27 GMT, Severin Gehwolf <[email protected]> wrote:

> From: 
> https://docs.oracle.com/en/java/javase/26/docs/api/java.base/java/lang/module/ModuleReader.html#list()
> 
> ```
> Lists the contents of the module, returning a stream of elements that are the 
> names of all resources in the module. [...]
> ```
> 
> Note: **all** resources. The class bytes of a preview class is a resource.

No, at the SystemImage level, preview resources don't exist and must not be 
visible.

The set of "all resource names" does not (and cannot) include them because they 
are not "name of resources", they are non visible paths to storage locations 
which are not being presented via this API.

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

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

Reply via email to