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

unclear spec for .dnd.DragSourceContext.add/removeDragSourceListener

XMLWordPrintable

    • 1.2.2
    • sparc
    • solaris_2.5



      Name: sdC67446 Date: 05/15/98


      The spec for methods
      java.awt.dnd.DragSourceContext.addDragSourceListener(DragSourceListner dsl)
      and removeDragSourceListener(DragSourceListener dsl) does not specify
      behavior if parameter dsl == null.
      Also it is unspecified the behavior of addDragSourceListener(DragSourceListener)
      if listener already added.
      Currently both methods ignore null parameter.

      Here is what doc says:
      --------------------------------------------------
      public void addDragSourceListener(DragSourceListener dsl)
                         throws TooManyListenersException
                         
                              change the DragSourceListener


      public void removeDragSourceListener(DragSourceListener dsl)

                              change the DragSourceListener
      --------------------------------------------------
      ======================================================================

            shommel Scott Hommel (Inactive)
            sdmitriesunw Sergei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: