test/tools/javac/lambda/TargetType52.java

Tue, 12 Feb 2013 19:25:09 +0000

author
mcimadamore
date
Tue, 12 Feb 2013 19:25:09 +0000
changeset 1562
2154ed9ff6c8
parent 1510
7873d37f5b37
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8007464: Add graph inference support
Summary: Add support for more aggressive type-inference scheme
Reviewed-by: jjg

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 }

mercurial