Compiler Error J0218

@com attribute 'identifier' on 'identifier' has an invalid value

The compiler detected that the value specified in the error message is either not the correct type for the attribute specified in the error or is outside the valid range for the attribute. Check the value assigned to the specified attribute and compile again.

The following example illustrates this error:

/** @com.class(classid=911CAED0-2957-11d1-A55E-00A0C90F26EE) */
class Simple{
   /** @com.parameters([type=CUSTOM, customMarshal="foo.bar",
       customMarshalFlags = 5] i) */
       //error: customMarshalFlags cannot be set higher than 3
   native void method1(Object i);
}