-
Bug
-
Resolution: Fixed
-
P4
-
1.2.2, 1.3.1, 1.4.0, 5.0
-
tiger
-
generic, sparc
-
generic, solaris_2.6
-
Verified
There are five methods in JTable that are documented to throw an IllegalArgumentException for certain input. These methods however, have never been implemented to throw for that input. There are two possible fixes: to change the implementation to throw the exception, or to remove the documentation that mentions it. An analysis of the methods indicates that rather than throwing an exception, they instead return false, which is an acceptable result. Since developers may rely on this behavior, the best approach is to remove the invalid documentation.
Note that this bug was created to consolidate four separate bugs. Here's the bugs and the methods that they are filed on:
Bug Method
(4465795) isRowSelected(int)
(4465792) isColumnSelected(int)
(4465732) isCellSelected(int)
(4464167) editCellAt(int, int)
(4464167) editCellAt(int, int, EventObject)
Note that this bug was created to consolidate four separate bugs. Here's the bugs and the methods that they are filed on:
Bug Method
(4465795) isRowSelected(int)
(4465792) isColumnSelected(int)
(4465732) isCellSelected(int)
(4464167) editCellAt(int, int)
(4464167) editCellAt(int, int, EventObject)
- duplicates
-
JDK-4464167 JTable.editCellAt() methods does not throw IllegalArgumentException
- Closed
-
JDK-4465732 javax.swing.JTable.isCellSelected() does not throw IAE
- Closed
-
JDK-4465792 javax.swing.JTable.isColumnSelected() does not throw IAE
- Closed
-
JDK-4465795 javax.swing.JTable.isRowSelected() does not throw IAE
- Closed