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

java.awt.Polygon.Polygon(int[], int[], int) has incomplete spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.1
    • 1.3.0
    • docs
    • ladybird
    • sparc
    • solaris_2.6
    • Verified

        Name: ktC97679 Date: 12/15/99


        Specification of java.awt.Polygon.Polygon(int[] x, int[] y, int n) covers
        only case of negative number of points n in the Polygon
        (NegativeArraySizeException should be thrown then), leaving out situation
        of number of points exceeding length of any of the x or y arrays.
        IllegalArgumentException or ArrayIndexOutOfBoundsException seems
        reasonable for the latter case.
        ======================================================================

              jballsunw Jennifer Ball (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: