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

Joe Darcy darcy at openjdk.java.net
Mon Feb 14 22:44:17 UTC 2022


On Mon, 14 Feb 2022 21:12:51 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Respond to review feedback explicitly stating returned sets are immutable.
>
> src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 196:
> 
>> 194: 
>> 195:     /**
>> 196:      * {@return corresponding integer mask for the flag; 0 if none}
> 
> 0 would not be possible, right?

Right; I'll fix the spec in the next revision. (This was a hold over of code originally copied from the Modifier class.)

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

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


More information about the core-libs-dev mailing list