Compiler Error J0226

The @com declared type of 'identifier' is illegal for a dispatch or dual interface

The compiler detected that an @com interface declaration, declared as either a dual or dispatch interface, has a member that contains an @com.parameters declaration with an incorrect type. Certain @com.parameters types are not allowed when the interface they are defined in is declared as either a dual or a dispatch interface. The following list shows which values are invalid for type:

The following example illustrates this error:

/**@com.interface(iid=31415926-5358-9793-2384-612345678901,dual) */
interface Itest{
   /**@com.parameters([in,out] n , [type = I8] j); */
   /*error: cannot use 'I8' as a type in a dual
            interface */
   public void method1(int n, int j);
}