1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/lambda/NoWarnOnImplicitParams.java Wed May 15 14:03:09 2013 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8013222 1.7 + * @summary Javac issues spurious raw type warnings when lambda has implicit parameter types 1.8 + * @compile/fail/ref=NoWarnOnImplicitParams.out -Xlint:rawtypes -Werror -XDrawDiagnostics NoWarnOnImplicitParams.java 1.9 + */ 1.10 +import java.util.List; 1.11 + 1.12 +class NoWarnOnImplicitParams { 1.13 + 1.14 + public void testRawMerge(List<String> ls) { 1.15 + R12 r12_1 = l->"Foo"; 1.16 + R12 r12_2 = (List l)->"Foo"; 1.17 + } 1.18 + 1.19 + interface R1 { 1.20 + Object m(List<String> ls); 1.21 + } 1.22 + 1.23 + @SuppressWarnings("rawtypes") 1.24 + interface R2 { 1.25 + String m(List l); 1.26 + } 1.27 + 1.28 + interface R12 extends R1, R2 {} 1.29 +}