mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
This commit is contained in:
parent
270fe13182
commit
3789983e89
56923 changed files with 3 additions and 15727 deletions
18
test/langtools/tools/javac/lambda/MethodReference67.java
Normal file
18
test/langtools/tools/javac/lambda/MethodReference67.java
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8012685
|
||||
* @summary Spurious raw types warning when using unbound method references
|
||||
* @compile/fail/ref=MethodReference67.out -Werror -Xlint:rawtypes -XDrawDiagnostics MethodReference67.java
|
||||
*/
|
||||
import java.util.*;
|
||||
|
||||
class MethodReference67 {
|
||||
interface Foo<X> {
|
||||
void m(List<X> lx, X x);
|
||||
}
|
||||
|
||||
void test() {
|
||||
Foo<String> fs1 = List::add; //no raw warnings here!
|
||||
Foo fs2 = List::add;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue