Spot the bug in the inner-class factory

from Inner classes
Java 25 LTS intermediate 4 min 1 issue to find

Find why this static factory does not compile.

Java
class Catalog {
    private final String name = "summer";

    class Entry {
        String label() { return name; }
    }

    static Entry first() {
        return new Entry();
    }
}
Open in playground
Report an error