[lworld] RFR: 8294051: [lworld] runtime/AccModule/ConstModule.java fails with incorrect error message [v2]

Frederic Parain fparain at openjdk.org
Mon Sep 8 16:15:23 UTC 2025


On Fri, 5 Sep 2025 19:51:00 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> This change moves code back to match mainline that checks access flags and checks for invalid JVM_CONSTANTS_Module/Package before reading the class name out of the constant pool.
>> Tested with tier1-3.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove extra error message printing for inner classes not in mainline.

src/hotspot/share/classfile/classFileParser.cpp line 4465:

> 4463:       "Illegal class modifiers in class %s%s: 0x%X",
> 4464:       _class_name->as_C_string(), class_note, flags
> 4465:     );

By removing the special handling of inner classes, the exception will report the access flag issue on the wrong class. This is going to make debugging/troubleshooting harder.

-------------

PR Review Comment: https://git.openjdk.org/valhalla/pull/1550#discussion_r2330725170


More information about the valhalla-dev mailing list