-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.2
-
sparc
-
solaris_2.5
Name: mgC56079 Date: 01/22/99
The implementation of Rectangle.intersection and
javax.swing.SwingUtilities.computeIntersection was changed in JDK1.2.2C to return
a (0,0,0,0) rectangle instead of a bogus result if the intersection is empty -
a bugfix for 4118972 (which was surprisingly closed as not a bug).
However, the spec was not updated to mention this.
This change caused a JCK1.2a regression:
api/java_awt/Rectangle/descriptions.html#intersection16
The spec should be updated to clarify the handling of non-intersecting rectangles.
The JCK test cannot be updated until the complete specification is provided.
======================================================================
- relates to
-
JDK-4374642 createIntersection fails if rectangles do not overlap
- Resolved
-
JDK-4286619 Poor doc for java.awt.Rectangle.intersection(Rectangle)
- Resolved