DEV Community

Discussion on: How to Make Your Reviewer Cry Using Java Optional

Collapse
 
clavinjune profile image
Clavin June

Java Optional is a life-safer! Even I created a blog post for it too. But still its map function can't call another function that throws an exception except you catch it.

Collapse
 
dante0747 profile image
Majid Abarghooei

Actually, this issue is related to all of the lambda expressions. Take a look at this article:
baeldung.com/java-lambda-exceptions