JDK-8135250 : Replace custom crypto check/range functionality with check index/range methods in java.util.Objects
  • Type: Bug
  • Component: core-libs
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-09-09
  • Updated: 2016-02-11
  • Resolved: 2016-01-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b105Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
JDK-8135248 will provide public methods in java.util.Arrays for checking indexes and ranges. Existing code with custom check/range functionality can be updated to use these methods.

Specifically replace custom code in:

  java.base/share/classes/com/sun/crypto/provider/AESCrypt.java#l352
  java.base/share/classes/com/sun/crypto/provider/CounterMode.java#l168

Comments
And crypto CounterMode after JDK-8143925: http://hg.openjdk.java.net/jdk9/hs-comp/jdk/file/cb31a76eecd1/src/java.base/share/classes/com/sun/crypto/provider/CounterMode.java#l168
06-01-2016

See also crypto code here: http://hg.openjdk.java.net/jdk9/hs-comp/jdk/file/cb31a76eecd1/src/java.base/share/classes/com/sun/crypto/provider/AESCrypt.java#l352
05-01-2016

Some of the crypto methods need updating also, such as this from JDK-8135250: http://hg.openjdk.java.net/jdk9/hs-comp/jdk/rev/cb31a76eecd1#l1.52 See discussion at: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2015-December/020593.html
31-12-2015