JDK-8220614 : (bf) Buffer absolute slice methods should use Objects.checkFromIndexSize()
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-03-13
  • Updated: 2019-04-03
  • Resolved: 2019-03-14
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 13
13 b13Fixed
Related Reports
Relates :  
Description
Currently the implementations of slice(index,length) use two invocations of Objects.checkIndex() when they should use one invocation of Objects.checkFromIndexSize().

See: http://mail.openjdk.java.net/pipermail/nio-dev/2019-March/005945.html