Neg06.java revision 773
2N/A/*
2N/A * @test /nodynamiccopyright/
2N/A * @bug 7002070
2N/A *
2N/A * @summary If catch clause has an incompatible type, error pointer points to first exception type in list
2N/A * @author mcimadamore
2N/A * @compile/fail/ref=Neg06.out -XDrawDiagnostics Neg06.java
2N/A *
2N/A */
2N/A
2N/Aclass Neg06 {
2N/A void test() {
2N/A try { }
2N/A catch (String | Integer s) {}
2N/A }
2N/A}
2N/A