Hello All
I'm trying to call a JAVA method from RPG but keep getting a null pointer exception.
The JAVA method is defined thus (simplified):
I have defined the input parameter in the corresponding RPG procedure interface as
When calling the method I pass a %subarr so as to only pass the number of elements populated with objects, but always get a null pointer exception.
Does the procedure definition need to be different when dealing with a JAVA method that uses varargs for the input parameters?
I'm trying to call a JAVA method from RPG but keep getting a null pointer exception.
The JAVA method is defined thus (simplified):
Code:
public Object myMethod (Object... objects) {}
Code:
class(*JAVA:'java.lang.Object') const dim(32767)
Does the procedure definition need to be different when dealing with a JAVA method that uses varargs for the input parameters?
Comment