ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

What is wrong with this prototype, getting compile error

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is wrong with this prototype, getting compile error


    D Address...
    D S O CLASS(*JAVA
    D :'com.paypal.api.payments-
    D .Address')

    D new_Address...
    D PR like(Address)
    D ExtProc(*JAVA:
    D 'com.paypal.api.payments-
    D .Address':
    D *CONSTRUCTOR)


    RNF3833 20 82 008200 Return-value class 'com.paypal... of prototype NEW_ADDRESS
    not same as method class 'com.paypal....

    I tried to get the font to display correctly but it wouldnt

    RNF3833

    The return value of a Java constructor must have the same class as the method.

    20

    Cause . . . . . : A Java constructor must return an Object of the same class as specified in the EXTPROC parameter. The class of the return value defaults to the class specified for the method in the EXTPROC parameter.

    Recovery . . . : Remove the CLASS keyword for the prototype's return value, or change it so it has the same class as specified as the second parameter of EXTPROC. Compile again.

  • #2
    Re: What is wrong with this prototype, getting compile error

    Never Mind, found it ...

    I had indented one space on the line after the:

    :'com.paypal.api.payments-

    Peas and Rice, IBM ... Isnt there a way where we can *tcat the continuation lines. I spent 6 hours looking for this

    Comment


    • #3
      Re: What is wrong with this prototype, getting compile error

      Closing thread

      Comment

      Working...
      X