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

Component addXListener and removeXListener methods should check for null inputs

XMLWordPrintable

    • 1.2fcs
    • generic
    • generic
    • Not verified

      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.
      ------------------------------------------------------------------

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: