On Fri, 17 Apr 2026 16:29:07 GMT, Alan Bateman <[email protected]> wrote:
>> Are you saying that `ModuleReader.list()` should not list both (preview >> classes and non-preview if both exist)? That's not what the javadocs say, >> fwiw. > > The ModuleReader APIs don't say anything about preview features. Also the > mapping of a fully qualified class name to a resource in a module is > convention rather than something specified. So I'm curious which javadoc you > mean, maybe an internal class? 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. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/29414#discussion_r3101847594
