On Tue, 21 Apr 2026 10:18:51 GMT, David Beaumont <[email protected]> wrote:

> This was discussed quite a lot initially in the design phase, and I 
> personally think what we have is the better choice.

This choice means 3 different views of the resources:
1. resources in META-INF/preview are hidden when preview features are disabled
2. resources in META-INF/preview are overlaid when preview features are enabled
3. the "raw" view resources in META-INF/preview are just resources in the 
module (the existing world

There is a lot of complexity in this, which is partly why it has taken me a 
long time to go through all these changes. This is why I'm wondering about 
making this simpler so that there are only 2 views.  

> Having any user code care or know what is in preview mode today is inherently 
> unstable in ways that knowing what was in version 3.7 of a library isn't.

If you mean that user code might test for resources in META-INF/preview to know 
if the VM has preview features enabled then there are many other ways to infer 
this. But maybe you mean something else?

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

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

Reply via email to