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

Documentation of java.awt.Rectangle.add(java.awt.Point) is wrong.

XMLWordPrintable

    • b16
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Docs contain the line ` r.add(pt.x, pt.y, 1, 1);`. Such a method does not exist.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The closest possible version would be ` r.add(new Rectangle(pt.x, pt.y, 1, 1));`
      ACTUAL -
      Docs contain the line ` r.add(pt.x, pt.y, 1, 1);`.

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/7/docs/api/java/awt/Rectangle.html#add%28java.awt.Point%29

            kizune Alexander Zuev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: