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



>Date: Mon, 17 Dec 2001 09:55:27 -0700
>From: "David Morris" <David.Morris@plumcreek.com>
>
>I did find an APAR that mentions:
>
>5. When the class for an ILE RPG Java native method is in a
>  package, the class name must be qualified.  For example:
>        extproc(*java:'MyPkg.MyClass':'mymeth')
>  When Java tries to call this native method, the call fails
>  because the native method cannot be found.
>
>Hopefully I can download and apply it tonight and it fixes
>the problem. Not sure where I report PDF manual problems
>to. Also, I don't have software support so I can't report the other
>errors I have encountered, I will try to document them and make
>that information available with the code when I post it.

David, that PTF only applies to native methods; I think you're
having trouble calling a method.  There was another PTF SI02011
to fix a problem where Java calls would fail if the CCSID of the
source file was 65535, but that would have caused all the message
replacements to be blank, not just the signature.  (It's one of
the superseding PTFs to the other one you found, so you probably
already got it.)

The best place to report manual problems is by clicking the
Feedback button in the Info Center.  It's the button that looks
like a stubby pencil, near the top right corner.

For what it's worth, your program worked ok for me after I
added some stuff (constructors) - here's my whole program:

H thread(*serialize)
DjavaString       c                   'java.lang.String'
DjavaBigDec       c                   'java.math.BigDecimal'
DnewString        PR              O   EXTPROC(*JAVA:javaString:
D                                       *constructor)
D   val                         50a   varying const
DnewBd            PR              O   EXTPROC(*JAVA:javaBigDec:
D                                       *constructor)
D   string                            like(newString) const
DbdAdd            PR                  LIKE(newBd)
D                                     EXTPROC(
D                                      *JAVA:javaBigDec:'add')
D BigDecimal                          LIKE(newBd)
DBd               s                   LIKE(newBd)
DBd2              s                   LIKE(newBd)
DString           s                   LIKE(newString)

C                   EVAL      String = newString ('10')
C                   EVAL      Bd = newBd (String)
C                   EVAL      Bd2 = bdAdd(bd : bd)
C                   seton                                        lr

Barbara Morris



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.