JDK-8343846 : [lworld] implement spec changes to stack map tables
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-08
  • Updated: 2025-03-17
  • Resolved: 2025-03-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaFixed
Related Reports
Relates :  
Relates :  
Description
Adding the ACC_STRICT flag for final fields indicates that the field may only be modified in an <init> method before execution of the super() call.(4.5, 4.9.2, 4.10.1.9.putfield)

In order to realize this, the initial strict instance fields of a class must be collected and monitored by the verifier with the list being updated at putfield and jump calls. These fields must all be initialized by the time the super constructor is called. For constructors with control flow, additional information about the state of these strict fields must be provided by the classfile, and thus must be generated by javac. 
Comments
A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1373 Date: 2025-02-21 20:10:39 +0000
21-02-2025