• In Review

      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.

      The changes submitted as part of this task will be to provide the new logic in the C++ classloader, but not supply preview resources (this will come later).
      So initially this code will have no visible effect, and should behave identically to the existing version of the code.

      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.

            dbeaumont David Beaumont
            dbeaumont David Beaumont
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: