JDK-4528889 : DragSourceEvent ctors null reaction needed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2001-11-19
  • Updated: 2005-02-02
  • Resolved: 2005-02-02
Related Reports
Duplicate :  
Description

Name: sdR10048			Date: 11/19/2001


Javadoc for 

    public DragSourceEvent(DragSourceContext��dsc)
    public DragSourceEvent(DragSourceContext��dsc, int��x, int��y)

should declare expected reaction if 'dsc' param is null.

Currently JDK1.4beta3-b84 throws (for both ctors) IllegalArgumentException
and JDK1.4beta3-b84 javadoc says:



public DragSourceEvent(DragSourceContext��dsc)

Construct a DragSourceEvent given a specified DragSourceContext.
The coordinates for this DragSourceEvent are not specified,
so getLocation will return null for this event.

Parameters:
dsc - the DragSourceContext

SeeAlso:
getLocation()



public DragSourceEvent(DragSourceContext��dsc, int��x, int��y)

Construct a DragSourceEvent given a specified
DragSourceContext, and coordinates of the cursor
location.

Parameters:
dsc - the DragSourceContext
x - the horizontal coordinate for the cursor location
y - the vertical coordinate for the cursor location

Since:
1.4



For some more details see
http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method

======================================================================

Comments
EVALUATION Already documented under the bug 4123385. ###@###.### 2005-2-02 11:58:04 GMT
02-02-2005