JDK-8368800 : [lworld] Early larval frame and strict should be guarded by preview
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-09-26
  • Updated: 2025-09-26
  • Resolved: 2025-09-26
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
Description
Early larval frame generation is required when ACC_STRICT_INIT is present, according to the Strict Field Initialization JEP. Since this JEP is preview, we should make strict fields and early larval frame generation be enabled or disabled together by the preview settings, instead of controlling through a hidden flag.

Javac also has a system of proxy locals for code before super. This system is not in conflict with early larval frames, because it transforms code that early larval frames may be entirely omitted. In practice, early larval is only generated when proxy locals are off.
Comments
A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1637 Date: 2025-09-25 23:35:25 +0000
26-09-2025