test/tools/javac/lambda/TargetType52.java

Tue, 10 Sep 2013 13:47:51 +0200

author
jfranck
date
Tue, 10 Sep 2013 13:47:51 +0200
changeset 2020
bb7271e64ef6
parent 1562
2154ed9ff6c8
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8005222: Fixed bugs should have tests with bugid in @bug tag
Reviewed-by: jfranck, jjg
Contributed-by: Andreas Lundblad <andreas.lundblad@oracle.com>

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