Mon, 28 Feb 2011 13:42:24 -0800
7022711: compiler crash in try-with-resources
Reviewed-by: mcimadamore
mcimadamore@563 | 1 | /* |
jjg@581 | 2 | * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
mcimadamore@563 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
mcimadamore@563 | 4 | * |
mcimadamore@563 | 5 | * This code is free software; you can redistribute it and/or modify it |
mcimadamore@563 | 6 | * under the terms of the GNU General Public License version 2 only, as |
mcimadamore@563 | 7 | * published by the Free Software Foundation. |
mcimadamore@563 | 8 | * |
mcimadamore@563 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
mcimadamore@563 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
mcimadamore@563 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
mcimadamore@563 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
mcimadamore@563 | 13 | * accompanied this code). |
mcimadamore@563 | 14 | * |
mcimadamore@563 | 15 | * You should have received a copy of the GNU General Public License version |
mcimadamore@563 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
mcimadamore@563 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
mcimadamore@563 | 18 | * |
jjg@581 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjg@581 | 20 | * or visit www.oracle.com if you need additional information or have any |
jjg@581 | 21 | * questions. |
mcimadamore@563 | 22 | */ |
mcimadamore@563 | 23 | |
mcimadamore@563 | 24 | /** |
mcimadamore@563 | 25 | * @test |
mcimadamore@563 | 26 | * @bug 6948381 |
mcimadamore@563 | 27 | * @summary javac Null Pointer Exception in Types.makeCompoundType |
mcimadamore@563 | 28 | * @compile npe/A.java npe/B.java |
mcimadamore@563 | 29 | */ |