-
Bug
-
Resolution: Fixed
-
P4
-
11
-
b03
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8359864 | 25 | Stuart Marks | P4 | Resolved | Fixed | b28 |
The trim() method uses an unusual and dated definition of spaces to trim, whereas the strip() family of methods on String uses the modern, Unicode-based definition of whitespace.
There should be a note in the trim() method specification that refers people to the strip() family of methods. The lack of such a note may lead to bugs such asJDK-8328175 which requests methods that already exist.
The isEmpty() method could also use a note that mentions isBlank().
There should be a note in the trim() method specification that refers people to the strip() family of methods. The lack of such a note may lead to bugs such as
The isEmpty() method could also use a note that mentions isBlank().
- backported by
-
JDK-8359864 (str) Add notes to String.trim and String.isEmpty pointing to newer APIs
-
- Resolved
-
- csr for
-
JDK-8359267 (str) Add notes to String.trim and String.isEmpty pointing to newer APIs
-
- Closed
-
- links to
-
Commit(jdk25) openjdk/jdk/5bcea92e
-
Commit(master) openjdk/jdk/06d804a0
-
Review(jdk25) openjdk/jdk/25858
-
Review(master) openjdk/jdk/25762
(1 links to)