IDEA-101689 incorrect control-flow analisys

This commit is contained in:
peter
2013-02-22 19:33:38 +01:00
parent abaf56fd49
commit 913554f408
3 changed files with 23 additions and 1 deletions
@@ -0,0 +1,21 @@
class MyException extends Exception {}
class Foo {
public static void main(String[] args) {
try {
bar();
} catch (Exception e) {
if (e instanceof MyException) {
return;
}
if (<warning descr="Condition 'e instanceof RuntimeException' is always 'true'">e instanceof RuntimeException</warning>) {
return;
}
e.printStackTrace();
}
}
private static void bar() throws MyException {
}
}