[lworld] RFR: Add Class.isIdentity

Roger Riggs rriggs at openjdk.org
Wed Aug 3 19:31:35 UTC 2022


On Tue, 31 May 2022 18:22:33 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Add j.l.Class.isIdentity() as a complement to Class.isValue() and Class.isPrimitiveClass.
> 
> Class.getModifiers() is updated to remove VM was suppressing the ACC_IDENTITY bit (previously known as ACC_SUPER).
> 
> Updated Class.toString() to reflect the addition of ACC_IDENTITY.
> For regular identity classes and interfaces, there is no change to toString.
> 
> Removed the obsolete test for ACC_SUPER
> 
> This PR may need to wait for corresponding VM changes.

Merged into other PR with modifiers.

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

PR: https://git.openjdk.org/valhalla/pull/700



More information about the valhalla-dev mailing list