-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0, 1.4.0, 5.0
-
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
--------------------------------------------------
======================================================================
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
--------------------------------------------------
======================================================================
- duplicates
-
JDK-4528889 DragSourceEvent ctors null reaction needed
-
- Closed
-
- relates to
-
JDK-4219341 incomplete doc for java.awt.dnd.DragSourceDragEvent
-
- Resolved
-
-
JDK-4219342 incomplete doc for java.awt.dnd.DragSourceDropEvent
-
- Resolved
-
-
JDK-4924527 java.awt.dnd.DragSourceDragEvent.getModifiers[Ex] and invalid modifiers
-
- Closed
-