Index: src/test/api/java/common/javax/swing/JListTest.java =================================================================== --- src/test/api/java/common/javax/swing/JListTest.java (revision 467351) +++ src/test/api/java/common/javax/swing/JListTest.java (working copy) @@ -129,6 +129,18 @@ list.addSelectionInterval(1, 2); assertFalse(list.isSelectionEmpty()); assertFalse(list.getSelectionModel().isSelectionEmpty()); + + try { + list.addSelectionInterval(1, -2); + fail("IndexOutOfBoundsException expected."); + } catch (IndexOutOfBoundsException e) { + } + + try { + list.addSelectionInterval(-2, 2); + fail("IndexOutOfBoundsException expected."); + } catch (IndexOutOfBoundsException e) { + } } public void testClearSelection() throws Exception {