[lworld] RFR: 8330582: [lworld] The JVM must enforce new field modifiers rules

Frederic Parain fparain at openjdk.org
Thu Apr 18 13:46:22 UTC 2024


On Thu, 18 Apr 2024 13:36:29 GMT, Frederic Parain <fparain at openjdk.org> wrote:

> Small changes to implement new field modifiers rules (JVMS 4.5 Fields) related to ACC_STRICT.
> Those changes trigger some test failures because of a bug in javac related to final synthetic field. This bug is tracked by JDK-8330583.

Note that the new field modifiers verification rules are applied only to new class files. The current JVMS draft of JEP 401 doesn't state that the new rules are only for new class files, but after a discussion with Dan Smith, the JVMS will be updated to clarify the behavior for old class files with respect to ACC_STRICT.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1076#issuecomment-2063902257



More information about the valhalla-dev mailing list