diff -r fadc6d3e63f4 -r f2048d9c666e test/tools/javac/multicatch/Neg03.java --- a/test/tools/javac/multicatch/Neg03.java Tue Nov 02 12:01:35 2010 +0000 +++ b/test/tools/javac/multicatch/Neg03.java Thu Nov 04 12:57:48 2010 +0000 @@ -9,19 +9,22 @@ */ class Neg03 { - static class A extends Exception {} - static class B extends Exception {} - void m() { + static class A extends Exception { public void m() {}; public Object f;} + static class B1 extends A {} + static class B2 extends A {} + + void m() throws B1, B2 { try { if (true) { - throw new A(); + throw new B1(); } else { - throw new B(); + throw new B2(); } - } catch (final A | B ex) { - ex = new B(); + } catch (Exception ex) { + ex = new B2(); //effectively final analysis disabled! + throw ex; } } }