-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 6, 21, 25, 26
-
Component/s: client-libs
-
b22
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
I can see a couple of problems here with the documented exceptions:
(1) If w or h is Integer.MAX_VALUE an IllegalArgumentException IS thrown, but you can get the exception for a lot of other inputs also...I'm wondering if the exception occurs when w * h is greater than Integer.MAX_VALUE (see for example the similar exception in the SampleModel constructor), but I'd have to look at the source code to know (and I won't do that, as I'm a contributor to GNU Classpath);
(2) An IllegalArgumentException is documented for dataType, but there is no dataType argument.
JUSTIFICATION :
The specification should be complete and accurate.
I can see a couple of problems here with the documented exceptions:
(1) If w or h is Integer.MAX_VALUE an IllegalArgumentException IS thrown, but you can get the exception for a lot of other inputs also...I'm wondering if the exception occurs when w * h is greater than Integer.MAX_VALUE (see for example the similar exception in the SampleModel constructor), but I'd have to look at the source code to know (and I won't do that, as I'm a contributor to GNU Classpath);
(2) An IllegalArgumentException is documented for dataType, but there is no dataType argument.
JUSTIFICATION :
The specification should be complete and accurate.
- csr for
-
JDK-8369849 BandedSampleModel.createCompatibleSampleModel() API docs are wrong
-
- Closed
-
- links to
-
Commit(master)
openjdk/jdk/a4eaeb47
-
Review(master)
openjdk/jdk/27806