Re: Free form defined Java procedure
Marco Facchinetti <marco.facchinetti-kthxv0ud/[email protected]>
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <CAMsgu4oVG9zv7B9i_X9wgkXizU4b-ZuUbaaQzymjd1L7NDzU5w@mail.gmail.com> |
Maybe Dcl-Pr genSig Like(Values) dim(2) Static ? HTH -- Marco Facchinetti Mr S.r.l. Tel. 035 962885 Cel. 393 9620498 Skype: facchinettimarco Il giorno gio 14 gen 2021 alle ore 20:23 Robert Wanless < rwanless-c+ID4+1mkFFWk0Htik3J/[email protected]> ha scritto: > Hello, > > I'm trying to code my method call in all free but I'm getting the error > NoSuchMethodError when the program tries to call it. I know it's not a > class path error and that it does exist because I have codded it in fixed > format and it calls the method just fine. This is what I have, could anyone > help me out with what I have defined incorrectly please? > > Java Code: > public class SignatureGenerator3 > { > public static String[] genSignedvalues(String PString1, String PString2, > String PString3, String PString4) > { > ... > } > } > > Fixed format: > d genSig PR O EXTPROC(*JAVA: > d 'SignatureGenerator3': > d 'genSignedvalues') > d STATIC > d > CLASS(*JAVA:'java.lang.String') > d dim(2) > d PassString1 O CLASS(*JAVA:'java.lang.String') > d Const > d PassString2 O CLASS(*JAVA:'java.lang.String') > d Const > d PassString3 O CLASS(*JAVA:'java.lang.String') > d Const > d PassString4 O CLASS(*JAVA:'java.lang.String') > d Const > > Free Format: > Dcl-Pr genSig Like(Values) Static > > EXTPROC(*Java:'SignatureGenerator3':'genSignedvalues'); > PassString1 Object(*Java:'jav.lang.String') CONST; > PassString2 Object(*Java:'jav.lang.String') CONST; > PassString3 Object(*Java:'jav.lang.String') CONST; > PassString4 Object(*Java:'jav.lang.String') CONST; > END-PR; > > Dcl-S values Object(*Java:'java.lang.String') Dim(2); > > Thanks, > Robert. > > -- > This is the Java Programming on and around the IBM i (JAVA400-L) mailing > list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org > Before posting, please take a moment to review the archives > at https://archive.midrange.com/java400-l. > > Help support midrange.com by shopping at amazon.com with our affiliate > link: https://amazon.midrange.com > -- This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org Before posting, please take a moment to review the archives at https://archive.midrange.com/java400-l. Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com