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

Component addXListener and removeXListener methods should check for null inputs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2fcs
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      The addXListener and removeXListener methods of Component should
      immediately throw a NullPointerException when passed a null argument.

      -----------------------------------------------------------------
      jeff.dunn@Eng 1998-08-19
      We can't throw an exception, because existing apps (e.g., hotjava)
      have become dependent upon the AWT silently ignoring null. We have
      changed the spec to explicitly state that null is ignored.
      ------------------------------------------------------------------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jdunnsunw Jeffrey Dunn (Inactive)
                Reporter:
                asommere Alan Sommerer (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: