RFR: 8335922: Incorrect @Stable usage of LambdaForm$Name.index
Chen Liang
liach at openjdk.org
Wed Jul 17 02:51:51 UTC 2024
On Mon, 15 Jul 2024 13:39:02 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> Indeed, for some reason I thought the range of short is -256 to 255 instead of -65536 to 65535
>
>> Indeed, for some reason I thought the range of short is -256 to 255 instead of -65536 to 65535
>
> Yeah, I thought something like this was going on; it would be a smart way to leverage that negative side in two-complement form is one value larger. But, `byte` is `-128...127`, and `short` is `-32768..32767`. So current thing would not even work if it did not support `256` as the value :)
@shipilev Would you re-review this patch, or are you no longer interested now that `@Stable` is removed?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20178#issuecomment-2232246296
More information about the core-libs-dev
mailing list