Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4528889
Votes 0
Synopsis DragSourceEvent ctors null reaction needed
Category java:dragndrop
Reported Against merlin-beta3
Release Fixed
State 11-Closed, duplicate of 4123385, bug
Priority: 4-Low
Related Bugs
Submit Date 19-NOV-2001
Description




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

======================================================================
Work Around
N/A
Evaluation
Already documented under the bug 4123385.
  xxxxx@xxxxx   2005-2-02 11:58:04 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang