Mon, 20 Jul 2015 11:41:52 -0700
Added tag jdk8u65-b06 for changeset ae5e31450299
mcimadamore@1510 | 1 | /* |
mcimadamore@1510 | 2 | * @test /nodynamiccopyright/ |
mcimadamore@1562 | 3 | * @bug 8005244 |
mcimadamore@1562 | 4 | * @summary Implement overload resolution as per latest spec EDR |
mcimadamore@1562 | 5 | * uncatched sam conversion failure exception lead to javac crash |
mcimadamore@1510 | 6 | * @compile/fail/ref=TargetType52.out -XDrawDiagnostics TargetType52.java |
mcimadamore@1510 | 7 | */ |
mcimadamore@1510 | 8 | class TargetType52 { |
mcimadamore@1510 | 9 | |
mcimadamore@1510 | 10 | interface FI<T extends CharSequence, V extends java.util.AbstractList<T>> { |
mcimadamore@1510 | 11 | T m(V p); |
mcimadamore@1510 | 12 | } |
mcimadamore@1510 | 13 | |
mcimadamore@1510 | 14 | void m(FI<? extends CharSequence, ? extends java.util.ArrayList<? extends CharSequence>> fip) { } |
mcimadamore@1510 | 15 | |
mcimadamore@1510 | 16 | void test() { |
mcimadamore@1510 | 17 | m(p -> p.get(0)); |
mcimadamore@1510 | 18 | } |
mcimadamore@1510 | 19 | } |