collect unhandled exceptions: process captured wildcards (IDEA-214559)

GitOrigin-RevId: d0a59dd9e5f43e5265584f5a8a06702334343d1a
This commit is contained in:
Anna Kozlova
2019-05-21 20:09:00 +03:00
committed by intellij-monorepo-bot
parent ebab794941
commit 3aeea94574
3 changed files with 17 additions and 0 deletions
@@ -0,0 +1,13 @@
class ErrorTest {
public static <E1 extends Throwable> void rethrow(Thrower<? extends E1> thrower) {
try {
thrower.doThrow();
}
catch (Throwable e) {
<error descr="Unhandled exception: E1">throw e;</error>
}
}
interface Thrower<E extends Throwable> {
void doThrow() throws E;
}
}