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

RFE: Insufficient API documentation for java.awt.Polygon constructor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • Fix Understood
    • x86
    • windows_nt



      Name: rmT116609 Date: 10/01/2002



      DESCRIPTION OF THE PROBLEM :
      The API documentation for the java.awt.Polygon constructor Polygon(int[] xpoints, int[] ypoints, int npoints) does not state whether the constructor makes copies of the xpoints and ypoints arrays or if it just records them. My tests indicate that the constructor makes copies of the arrays.
      And yes, it would be dangerous if it didn't.

      (Review ID: 165188)
      ======================================================================

            avu Alexey Ushakov
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: