Compiler Error J0201

'super' cannot be qualified except as a superclass constructor call

The compiler detected the usage of the super keyword with an instance of the superclass preceding it to access a field or method of the superclass. Using an instance of a superclass, along with the keyword super, is limited to referencing a superclass constructor when the superclass has inner classes defined within it.

The following example illustrates this error:

class Simple{
   int x;
}

class NotSimple extends Simple{
   NotSimple(Simple smp){
      smp.super.x = 100;
      /*error Cannot reference field with superclass
              name */
      super.x = 100;//This is OK!
   }
}