Mapping from standard Java types to ILE RPG types

The following table describes how data types are mapped from Java™ to ILE RPG. This mapping occurs when you create an RPG Java method call from ILE RPG code, using the editing function in the Remote Systems LPEX editor.
Java data type ILE RPG data type ILE RPG length, type, and keywords
boolean Indicator N
byte

1-byte Integer
Character

3I 0
1A

byte[]

Character VARYING
Character (length > 1)
Array of character
Date
Timestamp
Time

<length: 2 - 65535> A   VARYING
<length: 2 - 65535>A
1A   DIM(<length: 1 - 32767>)
D
Z
T

short 2-byte Integer 5I C
char UCS-2 (length=1) 1C
char[]

UCS-2 VARYING
UCS-2 (length>1)
Array of UCS-2 (length=1)

<length: 2 - 16383>C   VARYING
<length: 2 - 16383>C
1C   DIM(<length: 1 - 32767>)

int 4-byte integer 10I 0
long 8-byte integer 20I 0
float 4-byte float 4F
double 8-byte float 8F
any array Array of equivalent type <RPG type filled in by wizard> DIM(<length: 1 - 32767>)
all other objects Object O CLASS <className filled in by wizard>

Feedback