'return' must be the last item in an @com.parameters declaration
When declaring @com.parameters for a method, the return parameter must be the last parameter in the list. The compiler detected the return parameter in a different position within the parameter list. Check the location of the return parameter in the @com.parameters attribute specified in the error message, make the appropriate changes, and compile again.
The following example illustrates this error:
/** @com.class(classid=911CAED0-2957-11d1-A55E-00A0C90F26EE) */
class Simple{
/** @com.parameters([type=I4] return, [type=CUSTOM,
customMarshal="foo.bar", customMarshalFlags = 3] i) */
//error: 'return' cannot be defined as the first parameter
native int method1(Object i);
}