RFR: 8345514: Should use internal class name when calling ClassLoader.getResourceAsByteArray
Calvin Cheung
ccheung at openjdk.org
Wed Dec 4 17:56:10 UTC 2024
This patch is for fixing an assert failure in [filemap.cpp](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/cds/filemap.cpp#L2714). It was introduced via JDK-8343427.
The bug is that an external class name (e.g. pkg1.Foo) was passed as the argument when calling the java method `ClassLoader.getResourceAsByteArray()` which expects an internal class name (e.g. pkg1/Foo).
The test case for JDK-8343427 has been updated to include package names in test classes.
Passed tiers 1 - 5 testing.
-------------
Commit messages:
- 8345340: (JEP 483) JDK24b26 (not seen on b25) several JCK tests which use native JVMTI lib trigger VM crash
Changes: https://git.openjdk.org/jdk/pull/22535/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22535&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8345514
Stats: 22 lines in 2 files changed: 8 ins; 1 del; 13 mod
Patch: https://git.openjdk.org/jdk/pull/22535.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22535/head:pull/22535
PR: https://git.openjdk.org/jdk/pull/22535
More information about the hotspot-runtime-dev
mailing list