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

unclear spec for ctor java.awt.dnd.DragGestureRecognizer

XMLWordPrintable

    • 1.2.2
    • sparc
    • solaris_2.5



      Name: sdC67446 Date: 05/21/98


      The spec for ctors

      java.awt.dnd.DragGestureRecognizer(DragSource ds)
      java.awt.dnd.DragGestureRecognizer(DragSource ds,Component c)
      java.awt.dnd.DragGestureRecognizer(DragSource ds,Component c,int)
      java.awt.dnd.DragGestureRecognizer(DragSource ds,Component c,int,
                                         DragGestureListener)
      does not specify behavior if parameters 'ds'==null or 'c'==null.
      Currently ctors throw IllegalArgumentException for 'ds'==null and
      ignore 'c'==null.

      Here is what doc says:
      --------------------------------------------------

      protected DragGestureRecognizer(DragSource ds,
                                      Component c,
                                      int sa,
                                      DragGestureListener dgl)

            construct a new DragGestureRecognizer
            Parameters:
              ds - The DragSource for the Component c
              c - The Component to observe
              sa - The source drag actions
              dgl - The DragGestureRecognizer to notify when a gesture is detected

      --------------------------------------------------
      ======================================================================

            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: