United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4883196 : Five JTable methods should not declare @throws IllegalArgumentException

Details
Type:
Bug
Submit Date:
2003-06-24
Status:
Closed
Updated Date:
2004-03-26
Project Name:
JDK
Resolved Date:
2003-07-26
Component:
client-libs
OS:
solaris_2.6,generic
Sub-Component:
javax.swing
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.2,1.3.1,1.4.0,5.0
Fixed Versions:
5.0 (tiger)

Related Reports
Duplicate:
Duplicate:
Duplicate:
Duplicate:

Sub Tasks

Description
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)

                                    

Comments
EVALUATION

I filed this and I'm fixing it. Filing a request to change the docs.
###@###.### 2003-06-24

This is now fixed.
###@###.### 2003-07-08
                                     
2003-06-24
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b13

VERIFIED IN:
1.5


                                     
2004-06-14



Hardware and Software, Engineered to Work Together