Hi,
I encountered a problem and im not sure how to fix it.
Given types:
type
OxygeneEnum = public enum (
A,
B,
C
);
OxygeneEnumWraper = class
public
method getEnumList : List<OxygeneEnum>;
end;
implementation
method OxygeneEnumWraper.getEnumList: List<OxygeneEnum>;
begin
Result := ArrayList<OxygeneEnum>.create;
end;
then i use code like that:
List<OxygeneEnum> oxygeneEnumList = new OxygeneEnumWraper().getEnumList();
it works Ok inside of an oxygene but whenever i compile it to java.jar and use it as a library it gives error:
Error says its incompatible types, so i diged more and found out that getEnumList returns List instead of List as it should
Is there any work around this problem?