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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: