An @com.'identifier' declaration is illegal for this type of item
The compiler detected that an @com declaration was defined for the wrong type of item. This error usually occurs as a result of a change to your code, but it is not due to the syntax or placement of an @com declaration. Ensure that the proper @com declaration is used on the specified item in your code.
The following example illustrates this error:
/**@com.interface(iid=31415926-5358-9793-2384-612345678901,dual)*/
interface Itest{
/**@com.struct()*/
public int method1();
//error: wrong type of @com declaration applied
}