RNF0380

%THIS is valid only in Java instance methods.

30

Cause . . . . . : The built-in function %THIS is only valid if the sub-procedure being defined is a Java method (the first parameter of the EXTPROC keyword on the prototype is *JAVA). Furthermore, %THIS is only allowed for Java instance methods (keyword STATIC is specified on the prototype). The built-in function is ignored.

Recovery . . . : If the procedure is a Java instance method, change the EXTPROC keyword on the prototype so that the first parameter is *JAVA, or remove the STATIC keyword from the prototype. Otherwise, remove the %THIS built-in function. Compile again.