I've been investigating the way that JNI works and I've been writing Java
code and then trying to get the same thing working from RPG.
The play code involves the String split method and the arrayname.length
property. This all works in the Java version.
I mistakenly thought that length was an instance variable and wasted a lot
of time until a real Java developer pointed out that it was a property of
the Java array. The array is a native Java type so of course there is no
instance variable. I've been using Tom Snyder's book (Advanced Integrated
RPG) as my bible and was using the example code to obtain the Class Id anf
Field Id for length. The field id access was failing because (as I now
understand) there is no length instance variable.
So the question is - am I able to access the property value through JNI and
if so how.
Thanks in Advance
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.