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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 1.2.1
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: