RFR: 8286386: Address possibly lossy conversions in java.net.http [v3]
Daniel Fuchs
dfuchs at openjdk.java.net
Wed May 11 18:31:02 UTC 2022
On Wed, 11 May 2022 17:49:28 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Ah! Good point. Maybe I should use a constant and get rid of the cast.
>
> I'd put `_MASK` in the name along with whatever name is used for the bits in the frame spec .
@RogerRiggs Actually - I'm no longer sure that this will work:
jshell> char x = 0b10000000_00000000
x ==> '耀'
jshell> var y = ~x
y ==> -32769
jshell> char y = ~x
| Error:
| incompatible types: possible lossy conversion from int to char
| char y = ~x;
| ^^
-------------
PR: https://git.openjdk.java.net/jdk/pull/8656
More information about the net-dev
mailing list