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