<Swing Dev> [9] Review request for 8159587: IOOBE in javax/swing/JFileChooser/7199708/bug7199708.java

Alexandr Scherbatiy alexandr.scherbatiy at oracle.com
Mon Jul 11 10:37:07 UTC 2016


The fix looks good to me.

Thanks,
Alexandr.

On 7/11/2016 12:28 PM, Semyon Sadetsky wrote:
> Hello,
>
> Please review fix for JDK9:
>
> bug: https://bugs.openjdk.java.net/browse/JDK-8159587
>
> webrev: http://cr.openjdk.java.net/~ssadetsky/8159587/webrev.00/
>
> Exception is caused by row index value =0 which is not in a valid 
> range because table model contains no rows at the moment. The issue is 
> in FilePane's clear selection method. The correct way to clear a 
> selection model is to set the anchor/lead index to -1 not to 0.
>
> --Semyon
>




More information about the swing-dev mailing list