Mon, 05 Nov 2012 16:26:09 +0000
8000484: Bad error recovery when 'catch' without 'try' is found
Reviewed-by: jjg, mcimadamore
mcimadamore@1338 | 1 | /* |
mcimadamore@1338 | 2 | * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
mcimadamore@1338 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
mcimadamore@1338 | 4 | * |
mcimadamore@1338 | 5 | * This code is free software; you can redistribute it and/or modify it |
mcimadamore@1338 | 6 | * under the terms of the GNU General Public License version 2 only, as |
mcimadamore@1338 | 7 | * published by the Free Software Foundation. |
mcimadamore@1338 | 8 | * |
mcimadamore@1338 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
mcimadamore@1338 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
mcimadamore@1338 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
mcimadamore@1338 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
mcimadamore@1338 | 13 | * accompanied this code). |
mcimadamore@1338 | 14 | * |
mcimadamore@1338 | 15 | * You should have received a copy of the GNU General Public License version |
mcimadamore@1338 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
mcimadamore@1338 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
mcimadamore@1338 | 18 | * |
mcimadamore@1338 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
mcimadamore@1338 | 20 | * or visit www.oracle.com if you need additional information or have any |
mcimadamore@1338 | 21 | * questions. |
mcimadamore@1338 | 22 | */ |
mcimadamore@1338 | 23 | |
mcimadamore@1352 | 24 | //key: compiler.err.cant.apply.symbol |
mcimadamore@1338 | 25 | //key: compiler.misc.incompatible.eq.upper.bounds |
mcimadamore@1338 | 26 | |
mcimadamore@1338 | 27 | import java.util.List; |
mcimadamore@1338 | 28 | |
mcimadamore@1338 | 29 | class IncompatibleEqUpperBounds { |
mcimadamore@1338 | 30 | <S, T extends List<S>> void m(List<? super S> s1, T s2) { } |
mcimadamore@1338 | 31 | |
mcimadamore@1338 | 32 | void test(List<Integer> li, List<String> ls) { |
mcimadamore@1338 | 33 | m(li, ls); |
mcimadamore@1338 | 34 | } |
mcimadamore@1338 | 35 | } |