Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4883196

Five JTable methods should not declare @throws IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.2.2, 1.3.1, 1.4.0, 5.0
    • client-libs
    • 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)

            shickeysunw Shannon Hickey (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: