-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.2beta4
-
sparc
-
solaris_2.5
-
Verified
Name: sdC67446 Date: 05/18/98
Constructor java.awt.dnd.DropTarget() always throws NullPointerException.
Here what doc says:
public DropTarget()
throws SecurityException
Construct a DropTarget
--------------------------------------------------
Here is the test demostrating the bug:
--------------------------------------------------
import java.awt.dnd.*;
public class Test {
public static void main(String[] args) {
try {
DropTarget dt = new DropTarget();
} catch (NullPointerException e) {
System.out.println(e);
}
}
}
Here is test's output (jdk1.2beta4F):
--------------------------------------------------
JAVA2D_USEPLATFORMFONT not set
Disabling platform fonts
java.lang.NullPointerException: component
--------------------------------------------------
======================================================================