-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.6
Name: akC57697 Date: 01/20/98
The java.awt.swing.SwingUtilities.convertPoint does not throw AWTError in case when
the source and the distination components do not have a common ancestor.
The comments says:
* If both <b>source</b> and <b>destination</b) are non null and does
* not share a common ancestor, an error will be thrown.
---------------------8-<-------------------
import java.awt.swing.SwingUtilities;
import java.awt.*;
public class SwingUtilitiesTest {
public static void main(String s[]) {
try {
SwingUtilities.convertPoint(new Button(),
new Point(10,10),
new Canvas());
} catch (AWTError e) {System.out.println("OKAY");}
catch (Exception e) {System.out.println("Unexpected "+e);}
System.out.println("No AWTError !");
System.exit(0);
}
}
--------------------->-8-------------------
------------------output-------------------
(novo35 5): java SwingUtilitiesTest
No AWTError !
(novo35 6): java -fullversion
java full version "JDK-1.2beta3-C"
-------------------------------------------
======================================================================