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:
anna
2013-08-06 13:49:10 +02:00
parent 1bd39a6322
commit 6d3989e21d
3 changed files with 15 additions and 1 deletions
@@ -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>
}
}