746N/A/*
746N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
746N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
746N/A *
746N/A * This code is free software; you can redistribute it and/or modify it
746N/A * under the terms of the GNU General Public License version 2 only, as
746N/A * published by the Free Software Foundation.
746N/A *
746N/A * This code is distributed in the hope that it will be useful, but WITHOUT
746N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
746N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
746N/A * version 2 for more details (a copy is included in the LICENSE file that
746N/A * accompanied this code).
746N/A *
746N/A * You should have received a copy of the GNU General Public License version
746N/A * 2 along with this work; if not, write to the Free Software Foundation,
746N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
746N/A *
746N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
746N/A * or visit www.oracle.com if you need additional information or have any
746N/A * questions.
746N/A */
746N/A
746N/A/*
746N/A * @test
746N/A * @bug 6993963
746N/A * @summary Multicatch: crash while compiling simple code with a multicatch parameter
746N/A * @compile Pos08.java
746N/A */
746N/A
746N/Aclass Pos08 {
746N/A
746N/A interface Foo {}
746N/A static class X1 extends Exception implements Foo {}
746N/A static class X2 extends Exception implements Foo {}
746N/A
746N/A void m(boolean cond) {
746N/A try {
746N/A if (cond)
746N/A throw new X1();
746N/A else
746N/A throw new X2();
746N/A }
746N/A catch (final X1 | X2 ex) {}
746N/A }
746N/A}