Multi-catch support: more highlighting

This commit is contained in:
Roman Shevchenko
2011-02-19 14:48:41 +01:00
parent 85f277a149
commit f2184f3f50
6 changed files with 52 additions and 15 deletions
@@ -0,0 +1,12 @@
abstract class C {
private static class E extends Exception { }
private static class E1 extends E { }
private static class E2 extends E { }
abstract void f() throws E1, E2;
void m() {
try { f(); } catch (E1 | E2 ignore) { }
try { f(); } catch (<warning descr="Exception 'C.E1' is also caught by 'C.E'">E1</warning> | E ignore) { }
}
}