JDK-8361209 : (bf) Use CharSequence::getChars for StringCharBuffer bulk get methods
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-07-01
  • Updated: 2025-08-19
  • Resolved: 2025-08-12
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 26
26 b11Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
StringCharBuffer currently implements bulk get methods with a manual loop. JDK-8343110 provides a method on CharSequence that can copy characters in batch into char arrays; we can use that to implement StringCharBuffer bulk get opertaions.
Comments
Changeset: d0239826 Branch: master Author: Brian Burkhalter <bpb@openjdk.org> Date: 2025-08-12 17:39:14 +0000 URL: https://git.openjdk.org/jdk/commit/d023982600f8bb19053f579710953aa29e0f30c5
12-08-2025

noreg-other: Code is covered by java/nio/Buffer/GetChars.java. The situation will improve with the fix of JDK-8361715. Addendum: This code is now covered by the test java/nio/Buffer/CharBufferAsCharSequenceTest.java which supersedes java/nio/Buffer/GetChars.java which has been removed.
04-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26251 Date: 2025-07-10 20:27:52 +0000
10-07-2025