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