test/tools/javac/lambda/TargetType52.java

Tue, 05 Feb 2013 18:55:13 +0000

author
jjh
date
Tue, 05 Feb 2013 18:55:13 +0000
changeset 1546
2480aec9a3f1
parent 1510
7873d37f5b37
child 1562
2154ed9ff6c8
permissions
-rw-r--r--

8007504: Remove @ignore from tests that no longer need it
Reviewed-by: mcimadamore

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