Integrated: 8345514: Should use internal class name when calling ClassLoader.getResourceAsByteArray
Calvin Cheung
ccheung at openjdk.org
Thu Dec 5 15:42:49 UTC 2024
On Wed, 4 Dec 2024 06:05:45 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 1ece4f9d
Author: Calvin Cheung <ccheung at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1ece4f9d93c20e71a28d5df06dff546c87342782
Stats: 22 lines in 2 files changed: 8 ins; 1 del; 13 mod
8345514: Should use internal class name when calling ClassLoader.getResourceAsByteArray
Reviewed-by: iklam, matsaave
-------------
PR: https://git.openjdk.org/jdk/pull/22535
More information about the hotspot-runtime-dev
mailing list