RFR: JDK-8266670: Better modeling of access flags in core reflection [v4]

Joe Darcy darcy at openjdk.java.net
Tue Feb 15 21:09:57 UTC 2022


On Tue, 15 Feb 2022 09:04:02 GMT, ExE Boss <duke at openjdk.java.net> wrote:

>> src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 55:
>> 
>>> 53:  */
>>> 54: @SuppressWarnings("doclint:reference") // cross-module link
>>> 55: public enum AccessFlag {
>> 
>> I think there is missing SUPER ACC_SUPER  0x0020
>
> Note that the presence or absence of `ACC_SUPER` has no effect since **Java 8**, which always treats it as set regardless of the actual contents of the binary class file.

For completeness, I think including SUPER is reasonable, even though has been a no-op for some time. (Some time in the future, there could be a class file version aware additions to this enum class.) Well spotted omission.

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

PR: https://git.openjdk.java.net/jdk/pull/7445


More information about the core-libs-dev mailing list