Compiler Error J0234

'identifier' is not a field in class 'identifier'

The compiler detected a field reference but the field does not exist in the specified class. This error usually occurs when the field reference is mistyped or the field reference was meant to reference a field in a different class. Ensure that the field exists in the specified class, that your reference to the field is syntactically correct, and compile again.

The following example illustrates this error:

public class Simple{
   int var1;
   public Simple(){
       this.var = 10;
       //error: 'var' is not a field in this class
   }
}