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

spec for ctor java.awt.dnd.DragSourceDragEvent unclear

XMLWordPrintable

    • tiger
    • generic, sparc
    • generic, solaris_2.5, solaris_7
    • Verified

      Name: sdC67446 Date: 03/27/98


      The specification for ctor
      java.awt.dnd.DragSourceDragEvent(DragSourceContext, int dropActions,
      int actions, int modifiers) does not specify behavior for argument
      'dropActions' and 'actions' when they are invalid. Currently ctor ingnores
      invalid values. More acceptable behavior for all invalid actions here
      is to throw IllegalArgumentException unless otherwise specified.
      The same obscurity exists in ctors
      DragSourceDropEvent(DragSourceContext, int action),
      TargetDragEvent(DropTargetContext, Point, int dropAction, int srcAction),
      DropTargetDropEvent(DropTargetContext, Point, int dropAction, int srcActions)
      as well.

      Here is what doc says:
      --------------------------------------------------
      ublic DragSourceDragEvent(DragSourceContext dsc,
                                 int dropAction,
                                 int actions,
                                 int modifiers)

            construct a DragSourceEvent
      --------------------------------------------------
      ======================================================================

            agerasimsunw Alexander Gerasimov (Inactive)
            sdmitriesunw Sergei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: