mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
13 lines
285 B
Java
13 lines
285 B
Java
interface I<T extends Exception> {
|
|
void m() throws T;
|
|
}
|
|
|
|
class C {
|
|
void x(I<?> i) {
|
|
i.<error descr="Unhandled exception: java.lang.Exception">m</error>();
|
|
}
|
|
|
|
void y(I<? extends Exception> i) {
|
|
i.<error descr="Unhandled exception: java.lang.Exception">m</error>();
|
|
}
|
|
} |