Sat, 22 Dec 2018 13:10:38 -0800
Added tag jdk8u202-b25 for changeset 15d8c732039b
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 8005244
4 * @summary Implement overload resolution as per latest spec EDR
5 * uncatched sam conversion failure exception lead to javac crash
6 * @compile/fail/ref=TargetType52.out -XDrawDiagnostics TargetType52.java
7 */
8 class TargetType52 {
10 interface FI<T extends CharSequence, V extends java.util.AbstractList<T>> {
11 T m(V p);
12 }
14 void m(FI<? extends CharSequence, ? extends java.util.ArrayList<? extends CharSequence>> fip) { }
16 void test() {
17 m(p -> p.get(0));
18 }
19 }