Compiler Error J0199

Call of 'this()' cannot be qualified

The compiler detected that an inner class's constructor attempted to call it’s outer class constructor using the class name with the this() method. Inner classes cannot call their outer class's constructors. Remove the call to the outer class constructor from the inner class constructor and compile again.

The following example illustrates this error:

public class Simple{
   int x;
   Simple(int x){
      this.x = x;
   }
   class InnerClass{
      InnerClass(){
         Simple.this(10);
         //error: cannot call outer class constructor
      }
   }
}