On Mon, 11 May 2026 23:54:53 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:
> 
>   Use java.lang.classfile.ClassFile for JVM modifier values

Are you sure you want to add a dependency from java.lang.Class to 
java.lang.classfile.ClassFile ?

Or you are confident that because those a static final of primitive type, the 
compiler will not add that dependency,
in that case, maybe a comment would be useful

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

PR Comment: https://git.openjdk.org/valhalla/pull/2397#issuecomment-4428048014

Reply via email to