Javac error

Jose jgetino at
Mon Apr 1 01:52:54 PDT 2013

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 "";

More information about the lambda-dev mailing list