JDK-8197978 : Release Note: Optional.orElseThrow() Method
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 10
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2018-02-15
  • Updated: 2018-03-26
  • Resolved: 2018-02-15
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 10
10Resolved
Description
A new method `orElseThrow` has been added to the `Optional` class. It is synonymous with and is now the preferred alternative to the existing `get` method.