JDK-8338979 : Avoid bootstrapped switches in the classfile API
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-26
  • Updated: 2024-09-02
  • Resolved: 2024-08-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.
JDK 24
24 b13Fixed
Description
Using bootstrapped switches from the bytecode generating parts of the classfile API restricts switch bootstrapping itself (which need to make sure not to use parts of the classfile APIs which will go through a bootstrapped switch). And even if care is taken there's a small risk of bootstrap circularity issues in untested configurations. Desugaring also slightly helps startup. 
Comments
Changeset: e63418ee Branch: master Author: Claes Redestad <redestad@openjdk.org> Date: 2024-08-26 14:29:09 +0000 URL: https://git.openjdk.org/jdk/commit/e63418ee017def80689c88671e5d124b2d453fda
26-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20714 Date: 2024-08-26 13:39:44 +0000
26-08-2024