-
Bug
-
Resolution: Fixed
-
P2
-
25, 26
-
b06
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8362060 | 25.0.1 | Brian Burkhalter | P2 | Resolved | Fixed | b02 |
JDK-8361885 | 25 | Brian Burkhalter | P2 | Closed | Fixed | b32 |
"The methods defined by CharSequence operate relative to the current position of the buffer when they are invoked."
The method CharBuffer.getChars [2] is however specified to be an
"Absolute bulk get method. "
and interprets the source index parameters to be absolute. The implementation is consistent with this.
To adhere to the previously existing specification, the getChars method should be specified to be a
"Relative bulk get method. "
and the implementation modified accordingly.
[1] https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/nio/CharBuffer.html
[2] https://download.java.net/java/early_access/jdk25/docs/api/java.base/java/nio/CharBuffer.html#getChars(int,int,char%5B%5D,int)
- backported by
-
JDK-8362060 (bf) CharBuffer.getChars(int,int,char[],int) violates pre-existing specification
-
- Resolved
-
-
JDK-8361885 (bf) CharBuffer.getChars(int,int,char[],int) violates pre-existing specification
-
- Closed
-
- caused by
-
JDK-8343110 Add getChars(int, int, char[], int) to CharSequence and CharBuffer
-
- Resolved
-
- csr for
-
JDK-8361308 (bf) CharBuffer.getChars(int,int,char[],int) violates pre-existing specification
-
- Closed
-
- relates to
-
JDK-8361715 (bf) Improve java/nio/Buffer/GetChars.java and migrate to JUnit
-
- Open
-
-
JDK-8361209 (bf) Use CharSequence::getChars for StringCharBuffer bulk get methods
-
- In Progress
-
- links to
-
Commit(jdk25) openjdk/jdk/9b99ed8b
-
Commit(master) openjdk/jdk/6249259c
-
Review(jdk25) openjdk/jdk/26227
-
Review(master) openjdk/jdk/26104