JDK-8347709 : Release Note: Access to Applicable Access Flags by Location
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 25
  • Priority: P4
  • Status: Closed
  • Resolution: Withdrawn
  • Submitted: 2025-01-14
  • Updated: 2025-04-26
  • Resolved: 2025-04-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 25
25Resolved
Description
`java.lang.reflect.AccessFlag` models individual access flags that may be represented by the same bits in different locations, or `class` file structures, in which the access flags appear. This release adds new accessor methods, `flags` and `flagsMask`, to `AccessFlag.Location`, which allow users to obtain all bits with a defined access flag and those defined flags for a location.

The behavior of `AccessFlag.SYNTHETIC` has changed. Previous releases treated it incorrectly as if it was introduced in Java SE Platform 7. This release corrects it to be available since Java SE Platform 5.0.