-
-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in Try in 1.2.2 #1366
Comments
Hi, |
No, i have a lib that depends on javaslang 1. I am in the process of upgrading, but everything takes time. I have released a version of my lib that uses the workaround. |
I understand. We will fix it but it might need some time... |
Related to #1326 |
Fixed with v1.2.3 - will be available at maven central later today |
Trying to combine
Try
andjava.util.Optional
crashes withjava.lang.IllegalAccessError
Optional.of(Try.of() -> "hello")).flatMap(Try::toJavaOptional)
blows up.Optional.of(Try.of(() -> "hello")).flatMap(t -> t.toOption().toJavaOptional())
works.The text was updated successfully, but these errors were encountered: