> When performing an AOT training run using a multi-release JAR file, the > following warning can be encountered: > `[warning][aot] class org/example/Foo cannot be archived because it was not > defined from <path to mr.jar> as claimed` > This warning results from a specific configuration of the JAR file where the > class is not in the root directory but is present in the versioned directory > `META-INF/version`. To fix this, an upcall to ClassLoader.getResource() is > now made in the specific case where a multi-release JAR is being used and the > class cannot be found through normal means. Verified with tier 1-5 tests. > > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision: Fixed build issues ------------- Changes: - all: https://git.openjdk.org/jdk/pull/32087/files - new: https://git.openjdk.org/jdk/pull/32087/files/8fe812a8..dad3baaa Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=32087&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=32087&range=01-02 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/32087.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32087/head:pull/32087 PR: https://git.openjdk.org/jdk/pull/32087
