Project

General

Profile

Bug #6612

Extent input-output arguments of functions are not correctly wrapped

Added by Alexandru Lungu almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version:

History

#1 Updated by Alexandru Lungu almost 2 years ago

The following 4GL code converts to Java code which doesn't compile.

define variable eVar as integer extent 3.
function fnc1 returns logical(input-output par as integer extent 3):
    return par[1] = 0.
end.

function fnc returns logical(input-output par as integer extent 3):
    return fnc1(par).
end.

message fnc(input-output eVar).

The call from fnc is converted as returnNormal(fnc1(wrap(integer.class, par, true)));. However, there is no wap API function to support integer.class, par as integer[] and true, thus the error:

error: no suitable method found for wrap(Class<integer>,integer[],boolean)

#2 Updated by Constantin Asofiei almost 2 years ago

This may be solved in 6129a.

Also available in: Atom PDF