On Fri, 8 May 2026 16:50:31 GMT, Dan Smith <[email protected]> wrote:
>> Two changes: >> >> - Remove the `Class.isIdentity` method, which is redundant given the >> `Class.isValue` method >> - Clean up `Class.isValue` so that it only returns true for value classes, >> not other non-identity things (interfaces, primitives) >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Dan Smith has updated the pull request incrementally with one additional > commit since the last revision: > > Refactor implementation to skip `identity` field src/java.base/share/classes/java/lang/Class.java line 647: > 645: return false; > 646: } else { > 647: int mask = IDENTITY | Modifier.INTERFACE; Le's use ClassFile.ACC_ constants instead of Modifier ones or adding ones to Class. ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2397#discussion_r3219900972
