I\'ve recently been encountering the error message \"The blank final field obj may not have been initialized\".
Usually this is the case if you try to refer to a field t
I had a similar problem:
import java.util.function.Supplier;
public class ObjectHolder {
private final Object obj;
public Supplier
And resolved it this way:
public Supplier
Neither this.obj nor ObjectHolder.this.obj worked in Eclipse (though the latter worked for the standard JDK compiler).
In your case, use this workaround, it is safe for all compilers:
((Foo)this).obj.toString();
Another solution is to use a getter. In my example, it looks like this:
public Supplier