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

>> This is where the current proposal differs to multi-release JAR file. The 
>> proposal here is that the URL to say Integer.class 
>> is`jrt:/java.base/java/lang/Integer.class` even if preview features are 
>> enabled. If a connection is opened to this URL then it will be "connected" 
>> to the Integer.class in META-INF/preview when preview features are enabled. 
>> Same thing if ModuleReader::open is used to open an input stream to the 
>> resource.
>
> 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?

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

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

Reply via email to