Compiler Error J0069

Cannot apply '.' operator to an operand of type 'identifier'

The compiler detected the '.' operator applied to an invalid type. This error usually occurs when an invalid method call is made on an intrinsic data type. Ensure that your method call is using the correct object and compile again.

The following example illustrates this error:

public class Simple {
   
   int i = 123;
   int j = i.length; // error: 'i' not an array
   
}