-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b49
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084447 | emb-9 | Paul Sandoz | P4 | Resolved | Fixed | team |
CharSequence contains two default methods that return a Stream:
- chars() for streaming over the sequence of characters (as ints)
- codePoints() for streaming over the sequence of characters as code points (as ints)
The default implementations for these streams provide source spliterators that split poorly.
The methods can be overridden on String to provide better source spliterators, since the character array and size is known. The same applies to StringBuilder and StringBuffer.
- chars() for streaming over the sequence of characters (as ints)
- codePoints() for streaming over the sequence of characters as code points (as ints)
The default implementations for these streams provide source spliterators that split poorly.
The methods can be overridden on String to provide better source spliterators, since the character array and size is known. The same applies to StringBuilder and StringBuffer.
- backported by
-
JDK-8084447 Better Spliterator implementations for String.chars() and String.codePoints()
-
- Resolved
-
- duplicates
-
JDK-8012985 More parallel-friendly spliterator implementations
-
- Closed
-
- relates to
-
JDK-8189952 New methods on String: chars() and codePoints() should be marked since 9
-
- Closed
-