RFR: 8335922: Incorrect @Stable usage of LambdaForm$Name.index
Aleksey Shipilev
shade at openjdk.org
Mon Jul 15 13:42:51 UTC 2024
On Mon, 15 Jul 2024 12:28:51 GMT, Chen Liang <liach at openjdk.org> wrote:
> 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 :)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20178#issuecomment-2228531319
More information about the core-libs-dev
mailing list