<Swing Dev> [9] Review request for 8159587: IOOBE in javax/swing/JFileChooser/7199708/bug7199708.java
Semyon Sadetsky
semyon.sadetsky at oracle.com
Mon Jul 11 09:28:32 UTC 2016
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