987N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 987N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 987N/A * This code is free software; you can redistribute it and/or modify it 987N/A * under the terms of the GNU General Public License version 2 only, as 987N/A * published by the Free Software Foundation. 987N/A * This code is distributed in the hope that it will be useful, but WITHOUT 987N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 987N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 987N/A * version 2 for more details (a copy is included in the LICENSE file that 987N/A * accompanied this code). 987N/A * You should have received a copy of the GNU General Public License version 987N/A * 2 along with this work; if not, write to the Free Software Foundation, 987N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 987N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 987N/A * or visit www.oracle.com if you need additional information or have any 987N/A * @summary Test support for union types 987N/A * @library ../../../lib 987N/A "VariableTree: elem EXCEPTION_PARAMETER e",
987N/A "VariableTree: elem.type DECLARED",
987N/A "VariableTree: elem.type.elem CLASS E1",
987N/A "VariableTree: type DECLARED",
987N/A "VariableTree: type.elem CLASS E1",
987N/A "VariableTree: type.elem.type DECLARED"),
987N/A "VariableTree: E1 | E2 e",
987N/A "VariableTree: elem EXCEPTION_PARAMETER e",
987N/A "VariableTree: elem.type UNION Test.E1,Test.E2",
987N/A "VariableTree: elem.type.elem null",
987N/A "VariableTree: type UNION Test.E1,Test.E2",
987N/A "VariableTree: type.elem null"),
987N/A "VariableTree: E1 | EMissing e",
987N/A "VariableTree: elem EXCEPTION_PARAMETER e",
987N/A "VariableTree: elem.type UNION Test.E1,EMissing",
987N/A "VariableTree: elem.type.elem null",
987N/A "VariableTree: type UNION Test.E1,EMissing",
987N/A "VariableTree: type.elem null"),
987N/A "VariableTree: E1 | E2 e",
987N/A "VariableTree: elem EXCEPTION_PARAMETER e",
987N/A "VariableTree: elem.type UNION Test.E1,Test.E2",
987N/A "VariableTree: elem.type.elem null",
987N/A "VariableTree: type UNION Test.E1,Test.E2",
987N/A "VariableTree: type.elem null");
987N/A +
" class E1 extends Exception { }\n" 987N/A +
" class E2 extends Exception { }\n" 987N/A +
" void doSomething() throws #T { }\n" 987N/A +
" } catch (#C e) {\n"