JDK-8215112 : String::transform spec clarification
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-10
  • Updated: 2019-01-17
  • Resolved: 2019-01-09
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 12 JDK 13
12 b28Fixed 13Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
String::transform spec doesn't mention - what happens if function throws an exception?

E.g.

Function<String, String> function = str -> {throw new RuntimeException();};
"abc".transform(function);

This code throws RunTimeException when executed.
However String::transform spec has no mention that it can throw possible exception(s) thrown by function