-
Bug
-
Resolution: Fixed
-
P4
-
1.2.1
-
b10
-
x86
-
linux
Name: rmT116609 Date: 04/01/2003
FULL PRODUCT VERSION :
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
DESCRIPTION OF THE PROBLEM :
The documentation for java.awt.geom.Rectangle2D.add(double,double) includes the text:
After adding a point, a call to contains with the added point as an
argument does not necessarily return true. The contains method does
not return true for points on the right or bottom edges of a
rectangle. Therefore, if the added point falls on the left or bottom
edge of the enlarged rectangle, contains returns false for that point.
The word "left" in the third sentence should be "right".
This also affects java.awt.geom.Rectangle2D.add(Point2D)
http://java.sun.com/j2se/1.4.1/docs/api/java/awt/geom/Rectangle2D.html#add(double,%20double)
(Review ID: 183324)
======================================================================