|
I'm having some trouble calling a Java class that takes an int as one of its inputs. I have tried the following as the prototype for the method parameter: D format O Class(*JAVA:'java.lang.Integer') D Const and this for the constructor: D newInt PR O ExtProc(*JAVA: D 'java.lang.Integer': D *CONSTRUCTOR) D Class(*JAVA:'java.lang.Integer') D byes 9999A Const Varying Here's the declaration for the field I'm using as the input parm for the RPG program: D xformat S 5 * I would think this should be 5I 0 or 5S 0, but it only compiles if I declare this as alpha. Here's the declaration for the variable I'm using as the input parm for the Java class: D sFormat S O Class(*JAVA:'java.lang.Integer') And finally, here's how I'm trying to create the java.lang.Integer object. C Eval sFormat = newInt(xformat) If it's not yet obvious, I really don't know what I'm doing here. I'm trying to adapt another RPG program we're using that calls a Java class, but that one only uses strings. I'd be happy to post all of the source on request. Thanks! Mike E.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.