Catch `Exception` even if it isn't thrown, for Kotlin
- Lenguaje dominante
- Java
- Estrellas
- 12.1k
- Forks
- 4k
- Merge medio
- 2 d 17 h
- PR fusionados (30 d)
- 37
Descripción
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
Guía de contribución
Línea de trabajo
Primero confirmar cómo Kotlin gestiona las excepciones comprobadas, incluido si Runnable puede lanzarlas; después inspeccionar el código de gRPC que captura RuntimeException cuando puede haberse llamado a código de la aplicación. Revisar el issue enlazado de grpc y debatir el comportamiento con los mantenedores de Guava; la tarea se considera completada cuando haya un acuerdo unificado sobre el alcance y la gestión.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, kotlin
- Área
- api, backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100