Catch `Exception` even if it isn't thrown, for Kotlin
- Vorherrschende Sprache
- Java
- Sterne
- 12.1k
- Forks
- 4k
- Ø Merge
- 2 T. 17 Std.
- Gemergte PRs (30 T.)
- 37
Beschreibung
Kotlin does not observe checked exceptions. https://kotlinlang.org/docs/reference/exceptions.html#checked-exceptions . It [sounds like](https://github.com/grpc/grpc-java/issues/2668#issuecomment-422737424) that that means that even things like `Runnable` can throw checked exceptions.
Lots of code will be broken in such an environment, including lots of Guava. But for improved Kotlin handling we could consider making sure to handle `Exception` catching places we have `RuntimeException` catching if the application may have been called.
It's probably a good idea to confirm the behavior and discuss this problem with Guava folks and come to a unified agreement.
CC @m7onov, @zpencer
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.