grpc / grpc/grpc-java

Catch `Exception` even if it isn't thrown, for Kotlin

Open
#4,864 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.