test/tools/javac/lambda/TargetType52.java

Mon, 21 Jan 2013 20:13:56 +0000

author
mcimadamore
date
Mon, 21 Jan 2013 20:13:56 +0000
changeset 1510
7873d37f5b37
child 1562
2154ed9ff6c8
permissions
-rw-r--r--

8005244: Implement overload resolution as per latest spec EDR
Summary: Add support for stuck expressions and provisional applicability
Reviewed-by: jjg

mcimadamore@1510 1 /*
mcimadamore@1510 2 * @test /nodynamiccopyright/
mcimadamore@1510 3 * @summary uncatched sam conversion failure exception lead to javac crash
mcimadamore@1510 4 * @compile/fail/ref=TargetType52.out -XDrawDiagnostics TargetType52.java
mcimadamore@1510 5 */
mcimadamore@1510 6 class TargetType52 {
mcimadamore@1510 7
mcimadamore@1510 8 interface FI<T extends CharSequence, V extends java.util.AbstractList<T>> {
mcimadamore@1510 9 T m(V p);
mcimadamore@1510 10 }
mcimadamore@1510 11
mcimadamore@1510 12 void m(FI<? extends CharSequence, ? extends java.util.ArrayList<? extends CharSequence>> fip) { }
mcimadamore@1510 13
mcimadamore@1510 14 void test() {
mcimadamore@1510 15 m(p -> p.get(0));
mcimadamore@1510 16 }
mcimadamore@1510 17 }

mercurial