Integrated: 8343427: Class file load hook crashes on archived classes from multi-release JARs
Calvin Cheung
ccheung at openjdk.org
Tue Nov 26 17:17:01 UTC 2024
On Wed, 20 Nov 2024 00:37:25 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
> Currently, when retrieving a ClassFileStream during runtime, we call into the zip library to retrieve the stream based only on a class name. This doesn't work well if the class is in a multi-release jar under a versioned directory such as `META-INF/versions/9/Foo.class`. To address this issue, this change calls the java api `ClassLoader.getResourceAsStream()` to retrieve the stream.
>
> Passed tiers 1 - 4 testing.
This pull request has now been integrated.
Changeset: d752f196
Author: Calvin Cheung <ccheung at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d752f19611f7d2a83b4d5356c37e6c8ff02543fd
Stats: 239 lines in 7 files changed: 238 ins; 0 del; 1 mod
8343427: Class file load hook crashes on archived classes from multi-release JARs
Reviewed-by: dholmes, iklam
-------------
PR: https://git.openjdk.org/jdk/pull/22262
More information about the core-libs-dev
mailing list