-
Bug
-
Resolution: Fixed
-
P3
-
1.3.0
-
ladybird
-
sparc
-
solaris_2.6
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2030826 | 1.4.0 | Jennifer Ball | P3 | Closed | Fixed | beta |
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.
======================================================================
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.
======================================================================
- backported by
-
JDK-2030826 java.awt.Polygon.Polygon(int[], int[], int) has incomplete spec
-
- Closed
-
- relates to
-
JDK-4305166 Polygon : xpoints.length is more than npoints
-
- Resolved
-