Earlier builds would compile the code below, but now it fails. How can I define static functions like this with the latest builds? import java.util.function.Function; public interface Model { Function<Model, String> f=m->m.section().text(); Section section(); } class Section{ String text(){ return ""; } }