mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
collect unhandled exceptions: process captured wildcards (IDEA-214559)
GitOrigin-RevId: d0a59dd9e5f43e5265584f5a8a06702334343d1a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ebab794941
commit
3aeea94574
+13
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user