Tue, 10 Apr 2012 08:15:25 -0700
7074397: Build infrastructure changes (makefile re-write)
Summary: New makefiles transition, old and new living side by side for now.
Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser
Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>
mcimadamore@550 | 1 | /* |
mcimadamore@550 | 2 | * @test /nodynamiccopyright/ |
mcimadamore@550 | 3 | * @bug 6943289 |
mcimadamore@550 | 4 | * |
mcimadamore@550 | 5 | * @summary Project Coin: Improved Exception Handling for Java (aka 'multicatch') |
mcimadamore@550 | 6 | * @author mcimadamore |
mcimadamore@550 | 7 | * @compile/fail/ref=Neg02.out -XDrawDiagnostics Neg02.java |
mcimadamore@550 | 8 | * |
mcimadamore@550 | 9 | */ |
mcimadamore@550 | 10 | |
mcimadamore@550 | 11 | class Neg02 { |
mcimadamore@550 | 12 | static class A extends Exception {} |
mcimadamore@550 | 13 | static class B extends Exception {} |
mcimadamore@550 | 14 | |
mcimadamore@550 | 15 | void m() { |
mcimadamore@550 | 16 | try { |
mcimadamore@550 | 17 | if (true) { |
mcimadamore@550 | 18 | throw new A(); |
mcimadamore@550 | 19 | } |
mcimadamore@550 | 20 | else { |
mcimadamore@550 | 21 | throw new B(); |
mcimadamore@550 | 22 | } |
mcimadamore@735 | 23 | } catch (final A | B ex) { |
mcimadamore@735 | 24 | ex = new B(); |
mcimadamore@735 | 25 | } |
mcimadamore@550 | 26 | } |
mcimadamore@550 | 27 | } |