Latest Eclipse shows compilation error in correct Java code
09:42 24 Feb 2026

With the code below, the Eclipse Java compiler reports an error on lines 14 and 26, which make use of the Clazz.this.field; field.

The error is: "The blank final field field may not have been initialized".

It happens the same no matter of the interface type used.

The project is built successfully from bash (via mvn clean install).

import java.util.function.Consumer;

public class Clazz
{
    protected final Object field;

    protected Clazz(final Object param)
    {
        this.field = param;

        final Consumer c = new Consumer()
        {
            // The blank final field field may not have been initialized
            private final Object delegate = Clazz.this.field; // line 14

            @Override
            public void accept(final Object t)
            {
                System.out.println(this.delegate.toString());
            }
        };

        final Runnable r = new Runnable()
        {
            // // The blank final field field may not have been initialized
            private final Object delegate = Clazz.this.field; // line 26

            @Override
            public void run()
            {
                System.out.println(this.delegate.toString());
            }
        };
    }
}

I began getting this yesterday, after the Version: 2026-03 M3 (4.39.0 M3) update.

java eclipse