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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.3.1
    • Affects Version/s: 1.3.0
    • Component/s: 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.
        ======================================================================

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: