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

java.awt.AWTEventMulticaster.remove(.,.): null reactions

XMLWordPrintable

    • b95
    • sparc
    • solaris_7



      Name: sdR10048 Date: 06/26/2002


      JDK1.4.0rc-b92 documentation for methods (17 ones):
      java.awt.AWTEventMulticaster.remove(FooListener l, FooListener oldl)
      says nothing about expected behaviour if l == null or oldl == null.
      It should be noted as document "Requirements for Writing
      Java API Specifications" says:
      http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method.

      Here what doc currently says:
      -------------
      public static MouseWheelListener remove(MouseWheelListener l,
                                              MouseWheelListener oldl)

      Removes the old mouse-wheel-listener from mouse-wheel-listener-l
      and returns the resulting multicast listener.


      Parameters:
             l - mouse-wheel-listener-l
          oldl - the mouse-wheel-listener being removed
      -------------
      The same situation is with add(FooListener a, FooListener b) methods
      (all 17 ones) + remove(EventListener oldl).

      Needed for jck test development.
      ======================================================================

            son Oleg Sukhodolsky (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: