RFR: 8367368: Add message for verify_legal_class_modifiers for inner classes

Chen Liang liach at openjdk.org
Thu Sep 11 00:49:20 UTC 2025


On Wed, 10 Sep 2025 18:38:56 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This adds the inner class name (or unnamed) to the error message for invalid inner class modifiers.
> Testing with tier1-4.

I think for inner class errors, instead of reporting inner simple name, we should report:
1. offending class file
2. the inner class class constant. It is the only identification part that must be present.
3. the offending data, such as bad flags

What do you think? The inner class constant is universal because outer class is absent for anonymous/local classes and simple name is absent for anonymous classes.

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

PR Comment: https://git.openjdk.org/jdk/pull/27201#issuecomment-3276994512


More information about the hotspot-dev mailing list