RFR: 8305734: Fixes bug in get(int, int)

Chen Liang liach at openjdk.org
Tue Apr 11 21:35:26 UTC 2023


On Fri, 7 Apr 2023 12:22:03 GMT, Andy-Tatman <duke at openjdk.org> wrote:

> See https://bugs.java.com/bugdatabase/view_bug?bug_id=8305734

I think what Alan suggested in JBS is better: explicitly reject setting Integer.MAX_VALUE bit so that `len` will never return negative.

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

PR Comment: https://git.openjdk.org/jdk/pull/13388#issuecomment-1501333246


More information about the core-libs-dev mailing list