Try OpenEdge Now
skip to main content
Java Open Clients
Using the Open Client Java OpenAPI to Directly Access the AppServer : Setting up parameters : Arrays as return values : Handling unknown values in arrays.
 
Handling unknown values in arrays.
The ABL Unknown value (?) is mapped to Java null values. A Java array is an object so, it too can be assigned the null value. In this case all array elements are null. Since Java int[], boolean[], and long[] are arrays of intrinsic types, the individual elements of the array cannot be null. The int[], boolean[], or long[] array as a whole can be null and that means that every element of an array return value on the AppServer is the Unknown value (?).
If you want to return the Unknown value (?) to individual array elements, use the Allow Unknown… check box in the ProxyGen tool and then the generated proxy will contain Integer[], Boolean[], or Long[] for the return value instead of int[], boolean[], or long[].