× 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.



No, and you can't make them "Const" either.  I changed the 10I 0 part in my
mail message and that's it.  The actual line is

D  bytes                        10I 0 value

But it doesn't matter, because this is not the right constructor anyway.
And it looks like I don't need one, that I just need to define the int parm
in the prototype as a 10I 0 field and be done with it.  Now I'm having
signature issues.  I'm getting the following message:

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   */
   public static void main(java.lang.String[]);
       /*   ([Ljava/lang/String;)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 E.




                    Scott Klement
                    <klemscot@klement       To:     rpg400-l@midrange.com
                    s.com>                  cc:
                    Sent by:                Subject:     RE: Prototyping and 
Creating integer objects in RPG for
                    rpg400-l-admin@mi        calling Javaclasses
                    drange.com


                    11/15/02 01:44 AM
                    Please respond to
                    rpg400-l







I don't think you can make integers "varying".


On Thu, 14 Nov 2002 meovino@estes-express.com wrote:
>
> D  byes                         10I 0 Const Varying
>
> Now it compiles.  When I call it, I get the following error:
>

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.