Compiler Error J0219

An @com attribute cannot be placed on member 'identifier' unless the containing class or interface also has an @com attribute

The compiler detected that an @com declaration was placed on a member of a class or interface, but the class or interface was not declared with an @com declaration. Ensure that the class or interface which contains the method specified in the error has a valid @com declaration defined and compile again.

The following example illustrates this error:

interface Simple{
   /**@com.method(dispid=777); */
   public void method1();
   /*error: interface does not have an @com comment tag
            assigned*/
}