Searched refs:Sam2 (Results 1 - 6 of 6) sorted by relevance
/openjdk9/langtools/test/tools/javac/lambda/ |
H A D | TargetType23.java | 20 interface Sam2 { interface in class:TargetType23 31 void call(Sam2 s) { } 35 void call2(Sam2 s) { } 39 call(()-> { throw new RuntimeException(); }); // ambiguous - call(Sam1) vs. call(Sam2)
|
H A D | TargetType22.java | 20 interface Sam2<A> { interface in class:TargetType22 34 void call(Sam2<String> s) { }
|
H A D | TargetType60.java | 17 interface Sam2<X,Y> { interface in class:TargetType60 45 static <U> U g(Sam2<U,String> s) { return null; } 48 static <U> U u(Sam2<U,String> s) { return null; } 53 String s3 = g(this::m2); //ok - resolves to g(Sam2) 55 String s5 = g(this::m012);//ambiguous (g(Sam0), g(Sam1), g(Sam2) apply) 60 TargetType60 s2 = u(TargetType60::n1); //ok - resolves to u(Sam2) 62 TargetType60 s4 = u(TargetType60::n01);//ambiguous (u(Sam1), u(Sam2) apply) 63 TargetType60 s5 = u(TargetType60::n012);//ambiguous (u(Sam1), u(Sam2) apply)
|
/openjdk9/langtools/test/tools/javac/lambda/methodReferenceExecution/ |
H A D | MethodReferenceTestSueCase1.java | 42 public interface Sam2<T> { public String get(T target, String s); } interface in class:MethodReferenceTestSueCase1 45 Sam2<MethodReferenceTestSueCase1> var = MethodReferenceTestSueCase1::instanceMethod;
|
H A D | MethodReferenceTestSueCase4.java | 42 public interface Sam2<T> { public String get(T target, String s); } interface in class:MethodReferenceTestSueCase4 44 Sam2<Target> var = new Object().equals(new Object()) ? Target::instanceMethod : Target::instanceMethod;
|
H A D | MethodReferenceTestSueCase2.java | 42 public interface Sam2<T> { public String get(T target, String s); } interface in class:MethodReferenceTestSueCase2 45 static Sam2<MethodReferenceTestSueCase2> var = MethodReferenceTestSueCase2::instanceMethod;
|
Completed in 155 milliseconds