-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 1.2.0
-
Component/s: client-libs
-
generic
-
generic
Name: pkC79091 Date: 01/12/99
All the getPixel and getPixels methods in all implementing classes
of SampleModel accepts negative value for x but throws
ArrayIndexOutOfBoundsException for negative y value.See attached
testCases.test1.java fails with correct x value and incorrect y value.test2.java
passes with incorrect x value and correct y value.
The specs state that an "ArrayIndexOutOfBoundsException may be thrown if the coordinates are not in bounds" . However it is seen that the exception is thrown only when the y coordinate is out of bounds.
======================================================================
- duplicates
-
JDK-4411397 Raster and SampleModel methods should perform better bounds checking
-
- Resolved
-