Searched refs:Sam2 (Results 1 - 6 of 6) sorted by relevance

/openjdk9/langtools/test/tools/javac/lambda/
H A DTargetType23.java20 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 DTargetType22.java20 interface Sam2<A> { interface in class:TargetType22
34 void call(Sam2<String> s) { }
H A DTargetType60.java17 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 DMethodReferenceTestSueCase1.java42 public interface Sam2<T> { public String get(T target, String s); } interface in class:MethodReferenceTestSueCase1
45 Sam2<MethodReferenceTestSueCase1> var = MethodReferenceTestSueCase1::instanceMethod;
H A DMethodReferenceTestSueCase4.java42 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 DMethodReferenceTestSueCase2.java42 public interface Sam2<T> { public String get(T target, String s); } interface in class:MethodReferenceTestSueCase2
45 static Sam2<MethodReferenceTestSueCase2> var = MethodReferenceTestSueCase2::instanceMethod;

Completed in 96 milliseconds