RFR: 8366498: Wrong InstanceKlass::cast() in ClassFileParser::parse_super_class
Ioi Lam
iklam at openjdk.org
Mon Sep 1 05:25:17 UTC 2025
Please review this small change.
It affects debug build only, and I am not even sure if `cp->resolved_klass_at()` is ever called. Since we are very early in class file parsing, it's unlikely that any klass entries have been resolved at this point.
Anyway, for correctness, the `InstanceKlass::cast()` should be done after the check for array class.
-------------
Commit messages:
- 8366498: Wrong InstanceKlass::cast() in ClassFileParser::parse_super_class
Changes: https://git.openjdk.org/jdk/pull/27026/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27026&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8366498
Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/27026.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27026/head:pull/27026
PR: https://git.openjdk.org/jdk/pull/27026
More information about the hotspot-runtime-dev
mailing list