× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



meovino=/SPx079MrvAgMxX8nMqP6gC/G2K4zDHf@public.gmane.org wrote:
>
>
> Cause . . . . . :   RPG procedure ICR001 in program ICR001/MIKEE received
> Java
>   exception "java.lang.NoSuchMethodError: conversionTest" when calling
> method
>   "conversionTest" with signature "(Ljava.io.File;I)S" in class
>   "conversionTest".
>
> When I run javap -s on the conversionTest.class file, I see the following
> signatures:
>
>    public conversionTest(java.io.File,int);
>        /*   (Ljava/io/File;I)V   */
>
> I can see that they don't match.  But it looks like I've got the inputs
> correct; it's the "S" vs. "V" thing.  Here's the prototype for my Java
> program, conversionTest.class
>
> D conversionTest  PR             5I 0 ExtProc(*JAVA:
> D                                            Class1:'conversionTest')
> D                                     STATIC
>  *  method parameters
> D  f                              O   Class(*JAVA:'java.io.File')
> D                                     Const
> D  format                       10I 0 Value
>
> I'm guessing the S in the signature is coming from the STATIC keyword.  I
> can't find any documentation on what keyword I should be using that would
> give me a "V" in the signature.
>

Mike, the S is coming from the 5i 0 return value (S for short).  Just
remove the return value and you will get a V (V for void) in the
signature.

But you shouldn't have the STATIC keyword either.  You would only code
STATIC if the Java method had "static" in its header.

(The signature doesn't contain anything about static-ness.)




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.