[lworld] RFR: 8326707: [lworld] Remove VALUE modifier from Modifier and AccessFlag

Mandy Chung mchung at openjdk.org
Mon Feb 26 23:01:04 UTC 2024


On Mon, 26 Feb 2024 21:19:12 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Remove the VALUE modifier in Modifier.java and AccessFlag.java.
> Map the Class.isValue() method to `!Class.isIdentity()`.

src/java.base/share/classes/java/lang/Class.java line 709:

> 707:     @PreviewFeature(feature = PreviewFeature.Feature.VALUE_OBJECTS)
> 708:     public boolean isValue() {
> 709:         return (this.getModifiers() & Modifier.IDENTITY) == 0;

This needs to test if it's a primitive type, `void`, and an array type which do not have `IDENTITY` modifier set.

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1019#discussion_r1503416241



More information about the valhalla-dev mailing list