Catch `Exception` even if it isn't thrown, for Kotlin
- Langage dominant
- Java
- Étoiles
- 12.1k
- Forks
- 4k
- Merge moyen
- 2 j 17 h
- PR mergées (30 j)
- 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencer par confirmer comment Kotlin gère les exceptions vérifiées, notamment si Runnable peut en lever ; examiner ensuite le code gRPC qui intercepte RuntimeException lorsqu’il est possible que du code applicatif ait été appelé. Examiner l’issue grpc liée et discuter du comportement avec les mainteneurs de Guava ; le travail est terminé lorsqu’un accord unifié sur le périmètre et la gestion est atteint.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java, kotlin
- Domaine
- api, backend
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100