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

Five JTable methods should not declare @throws IllegalArgumentException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.2, 1.3.1, 1.4.0, 5.0
    • Fix Version/s: 5.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.6
    • Verification:
      Verified

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: