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

Poor doc for java.awt.Rectangle.intersection(Rectangle)

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.5



      Name: dsC58869 Date: 11/01/99



      The Java Doc for method
      public Rectangle java.awt.Rectangle.intersection(Rectangle r)
      says:
      ----------
      Computes the intersection of this Rectangle with the specified Rectangle. Returns a new Rectangle that
          represents the intersection of the two rectangles.
          Parameters:
              r - the specified Rectangle
          Returns:
              the largest Rectangle contained in both the specified Rectangle and in thisRectangle.
      ----------
      and says nothing about result for non-intersection rectangles.
      It is unclear what "largest Rectangle contained in both" mean in this case.

      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            sdasunw Sda Sda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: