As part of supporting preview mode throughout the JDK, the C++ classloader needs to be aware of it and load alternate versions of classes and resources from the runtime jimage file.

      This will follow the same layout as for other preview aware code interrogating the jimage file, so specifically:
      1. Preview resources will exist per module.
      2. Preview resources for /modules/<module>/<path> will be in /modules/<module>/META-INF/preview/<path>
      3. When preview mode is enabled, preview resources will overlay non-preview resources (by path matching).
      4. (IMPORTANT) Non preview resources, will still be returned EVEN IF they were originally related to replaced resource (e.g. nested/inner class defined by a non-preview class, but no longer defined by the preview version).

      Note that (4) could be resolved by checking for preview versions of the implied owning class, but this is more work and still cannot address resource files, where "ownership" cannot be inferred.

            Unassigned Unassigned
            dabeaumo David Beaumont
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: