Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4841153

java.awt.geom.Rectangle2D.add(double,double) documented incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 1.2.1
    • client-libs
    • 2d
    • 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)
      ======================================================================

            psadhukhan Prasanta Sadhukhan
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: