blob: 30ebe2d080db45f766199394e71d0c5142ed4114 [file] [log] [blame]
class Test {
interface I<E extends Throwable> {
void foo() throws E;
}
static class Ex extends Exception {}
<E extends Throwable> void bar(I<E> s) throws E {
s.foo();
}
void baz(I<Ex> s) throws Ex {
bar(() -> {
try {
s.foo();
} catch (Throwable t) {
throw t;
}
});
bar(() -> s.foo());
}
}