-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
25
-
Cause Known
-
generic
-
generic
https://bugs.openjdk.org/browse/JDK-8350440 spec amendments for RC2ParameterSpec
ArrayIndexOutOfBoundsException if offset is negative.
One of the case not satisfying the amended spec.
RC2ParameterSpec:"ArrayIndexOutOfBoundsException if offset is negative."
For example :
new RC2ParameterSpec(2,"testHello".getBytes(UTF_8), Integer.MIN_VALUE);
expected to throw ArrayIndexOutOfBoundsException but throws IAEx.
This needs to be fixed or clarified in the spec?
ArrayIndexOutOfBoundsException if offset is negative.
One of the case not satisfying the amended spec.
RC2ParameterSpec:"ArrayIndexOutOfBoundsException if offset is negative."
For example :
new RC2ParameterSpec(2,"testHello".getBytes(UTF_8), Integer.MIN_VALUE);
expected to throw ArrayIndexOutOfBoundsException but throws IAEx.
This needs to be fixed or clarified in the spec?
- clones
-
JDK-8267068 Incomplete @throws javadoc for various javax.crypto.spec classes
-
- Resolved
-