Rectangle.intersection should say about non-intersecting rectangles

XMLWordPrintable

    • 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.

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

            Assignee:
            Scott Hommel (Inactive)
            Reporter:
            Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: