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

Joe Darcy darcy at openjdk.java.net
Mon Jun 13 23:21:00 UTC 2022


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

>> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Respond to more review feedback.
>
> src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 163:
> 
>> 161:     * @see Class#isEnum()
>> 162:     */
>> 163:     ENUM(0x00004000, false, Set.of(TYPE, FIELD)),
> 
> These can use the **package‑private** constant fields from `java.lang.reflect.Modifier`: <https://github.com/openjdk/jdk/blob/ab623f8ae05c57b165d4d918d896dbdc5b4177e9/src/java.base/share/classes/java/lang/reflect/Modifier.java#L338-L347>

Good suggestion; will be reflected in the next push.

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

PR: https://git.openjdk.org/jdk/pull/7445


More information about the core-libs-dev mailing list