RFR: 8352869: Verify.checkEQ: extension for NaN, VectorAPI and arbitrary Objects [v7]
Christian Hagedorn
chagedorn at openjdk.org
Thu Apr 3 07:56:59 UTC 2025
On Thu, 3 Apr 2025 06:08:41 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>> Look at this ;)
>>
>> jshell> char a = 66;
>> a ==> 'B'
>>
>> jshell> System.out.println("a: " + a);
>> a: B
>>
>> jshell> System.out.println("a: " + (int)a);
>> a: 66
>>
>>
>> But I can remove the casts for `short`.
>
> Added a comment as well.
Right, that makes sense for the `char` case. But good that we could remove it for the `short` case.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24224#discussion_r2026372872
More information about the hotspot-compiler-dev
mailing list