RFR: 6187113: DefaultListSelectionModel.removeIndexInterval(0, Integer.MAX_VALUE) fails [v9]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Oct 28 03:35:21 UTC 2022


On Fri, 28 Oct 2022 03:32:18 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> DefaultListSelectionModel.removeIndexInterva accepts `int` value which allows it to take in Integer.MAX_VALUE theoratically but it does calculation with that value which can results in IOOBE.
>> Fix is to make sure the calculation stays within bounds.
>
> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Review fix
>  - Review fix

I guess it's good idea to add your test into jtreg..

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

PR: https://git.openjdk.org/jdk/pull/10409



More information about the client-libs-dev mailing list