Compiler Error J0128

Cannot declare an interface to be 'final'

The compiler detected an interface declared with the keyword final. Interfaces cannot be defined as final and thus cannot use the final modifier. Remove the final keyword from the interface declaration and compile again.

The following example illustrates this error:

final interface Simple {
   
   /*error: 'final' only applies to
      classes, methods,or variables*/
   
}