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

Rectangle.intersection should say about non-intersecting rectangles

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description



      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.

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: