mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
IDEA-111613 Bad code is green: IDEA doesn't show 'Unhandled exception' error when a method with parametrized 'throws' section is used with wildcard type argument
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
interface I<T extends Exception> {
|
||||
void m() throws T;
|
||||
}
|
||||
|
||||
class C {
|
||||
void x(I<?> i) {
|
||||
<error descr="Unhandled exception: java.lang.Exception">i.m();</error>
|
||||
}
|
||||
|
||||
void y(I<? extends Exception> i) {
|
||||
<error descr="Unhandled exception: java.lang.Exception">i.m();</error>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user