
Я использую IntelliJ IDEA CE 2017.2.1 с JDK 9+179.
Вот пример кода выше:
public class Test {
@FunctionalInterface
interface IF {
String abc = "abc";
void apply();
}
public static void main(String[] args) {
IF theIF = ()->{};
System.out.println(theIF.abc); // I can print `abc` value here, but...
theIF. // DOT here(press ctrl + space) not show member `abc`
}
}
Подробнее здесь: https://stackoverflow.com/questions/460 ... ic-methods