[lworld] RFR: 8281463: [lworld] VALUE / PRIMITIVE modifiers should be supported by reflection [v2]

Mandy Chung mchung at openjdk.java.net
Tue Jun 7 18:32:19 UTC 2022


On Fri, 27 May 2022 20:21:44 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Add support to java.lang.reflect.AccessFlag ACC_IDENTITY, ACC_VALUE, and ACC_PRIMITIVE.
>> Added corresponding flags to j.l.reflect.Modifier so the "source" of the AccessFlag is the Modifer mask.
>> Remove PERMITS_VALUE; moving the definition used by HotSpot to HotSpot code.
>> 
>> Add comments to java.l.reflect.Modifier suggesting use of AccessFlag instead and limitations.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Restore AccessFlag SUPER

src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 127:

> 125:      * 0x0020}.
> 126:      * <p>
> 127:      * NOTE: The Valhalla draft JVMS spec does not define a value for ACC_SUPER.

This can be an `@apiNote`?

This sentence means a TODO note to me and need to determine what to do with a removed access flag in this new API.

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

PR: https://git.openjdk.java.net/valhalla/pull/698



More information about the valhalla-dev mailing list