-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.2.0
In JAI-1.0, RasterFactory.createBandedSampleModel() throws IllegalArgumentException when the first argument (data type) is set to -1.
In current release, this method ignores this error. This bug affects the
following JCK test cases:
RasterFactory.CreateBandedSampleModel_5 9
RasterFactory.CreateBandedSampleModel_6 16
The following program can be used to illustrate this behaviour.
import javax.media.jai.RasterFactory;
public class Bug_CreateBandedSampleModel_5 {
public static void main(String args[]) {
RasterFactory.createBandedSampleModel(-1, 1, 2, 3);
}
}
- duplicates
-
JDK-4180536 SampleModel constructor does not check for valid datatypes.
- Resolved