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

Joe Darcy darcy at openjdk.org
Thu Jun 23 18:11:20 UTC 2022


On Wed, 22 Jun 2022 17:33:25 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove implSpec tag from Executable.accessFlags since the class is sealed.
>
> src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 290:
> 
>> 288:     // Intentionally using Set rather than EnumSet since EnumSet is
>> 289:     // mutable.
>> 290:     private Set<Location> locations;
> 
> these instance fields can be made final.

Agreed.

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

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


More information about the core-libs-dev mailing list