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