JDK-8048264 : StringBuffer's codePoint methods throw unspecified IndexOutOfBoundsException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8u60,9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-06-26
  • Updated: 2017-05-17
  • Resolved: 2015-04-17
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 b62Fixed
Related Reports
Relates :  
Description
The following methods may throw IndexOutOfBoundsException, but don't have an appropriate assertion in Javadocs:
    java.lang.StringBuffer.codePointAt(int)
    java.lang.StringBuffer.codePointBefore(int)
    java.lang.StringBuffer.codePointCount(int,int)

They should have assertions like these methods:
    java.lang.StringBuilder.codePointAt(int)
    java.lang.StringBuilder.codePointBefore(int)
    java.lang.StringBuilder.codePointCount(int,int)

Comments
Remove tck-red. Confirmed that the tests exists in the exclude list http://javaweb.us.oracle.com/java/jck/pkgs/tck-excludes/JCK/jck8b.jtx. Thanks to Elena.
15-04-2015

Looks like the situation is the same for: java.lang.StringBuffer.offsetByCodePoints(int,int)
13-04-2015

Conformance bugs should be P2 or higher.
13-04-2015