-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b138
-
generic
-
generic
-
Verified
The spec for java.awt.image.SampleModel.setDataElements() says:
"@throws ArrayIndexOutOfBoundsException if the coordinates are not in bounds, or if obj is too small to hold the output."
However, this exception is not thrown if x or y coordinate is set to Integer.MAX_VALUE.
This problems leads to failing JCK test:
api/java_awt/Image/SampleModel/index.html#GetsetDataElements2[getsetDataElements20004]
"@throws ArrayIndexOutOfBoundsException if the coordinates are not in bounds, or if obj is too small to hold the output."
However, this exception is not thrown if x or y coordinate is set to Integer.MAX_VALUE.
This problems leads to failing JCK test:
api/java_awt/Image/SampleModel/index.html#GetsetDataElements2[getsetDataElements20004]
- relates to
-
JDK-6773022 java.awt.image.SampleModel.getDataElements() does't throw ArrayIndexOutOfBoundsEx for Integer.MAX_V
-
- Closed
-