I recently found that the following interface:
public static interface LoggImpl{
public default void Log(String s){
}
}
Cannot be referenced as a lambda:
// compile error: "no target method found"
static LoggImpl impl = (String s)-> {
System.out.println(s);
};
Does this mean that we can't define default functionality for a single function lambda?