Forums » Runtime » Base Language »
Converted code errors during compilation process
Added by Deividas Varzgalys about 3 years ago
The conversion step was successful for our huge application, but several group errors were obtained during compilation process:
First group of errors are about non-static variable reference.
[javac] /home/fwd/projects/ourProject/OurClass.java:1706: error: non-static variable this cannot be referenced from a static context [javac] GlsClass.this.bGls = bGls;
No warnings with this file during report/convertion process.
Second group:
/home/fwd/projects/ourProject/XlsxReport.java:201: error: no suitable method found for set(integer,object<CAP#1>) [javac] prPages.ref().set(pIndex, pPage); [javac] ^ [javac] method JsonArray.set(integer,character) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to character) [javac] method JsonArray.set(integer,comhandle) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to comhandle) [javac] method JsonArray.set(integer,date) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to date) [javac] method JsonArray.set(integer,datetime) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to datetime) [javac] method JsonArray.set(integer,datetimetz) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to datetimetz) [javac] method JsonArray.set(integer,decimal) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to decimal) [javac] method JsonArray.set(integer,handle) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to handle) [javac] method JsonArray.set(integer,int64) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to int64) [javac] method JsonArray.set(integer,integer) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to integer) [javac] method JsonArray.set(integer,logical) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to logical) [javac] method JsonArray.set(integer,longchar) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to longchar) [javac] method JsonArray.set(integer,memptr) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to memptr) [javac] method JsonArray.set(integer,raw) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to raw) [javac] method JsonArray.set(integer,recid) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to recid) [javac] method JsonArray.set(integer,rowid) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to rowid) [javac] method JsonArray.set(integer,object<? extends JsonArray>) is not applicable [javac] (argument mismatch; object<CAP#1> cannot be converted to object<? extends JsonArray>) [javac] where CAP#1 is a fresh type-variable: [javac] CAP#1 extends JsonObject from capture of ? extends JsonObject
No warnings with this file during report/convertion process.
Third group:
[javac] /home/fwd/projects/ourProject/DetailsReportData.java:178: error: incompatible types: TableParameter cannot be converted to handle [javac] vArray.ref().read(new TableParameter(tempTable(ttcln)));
No warnings with this file during report/convertion process.
Fourth group:
[javac] /home/fwd/projects/ourProject/Import.java:5144: error: cannot find symbol [javac] ObjectOps.cast(oPart, com.ba.indigo.indapp.system.clt.MovablePart.class).ref().setData(new TABLE(tempTable(ttmovable))); [javac] ^ [javac] symbol: class TABLE [javac] location: class Import
No warnings with this file during report/convertion process.
Any thoughts or ideas on how to fix these problems? because it looks like convertion bugs.
Replies (2)
RE: Converted code errors during compilation process - Added by Greg Shah about 3 years ago
because it looks like convertion bugs.
Yes, I think they probably are conversion bugs. We will fix them. The sample 4GL programs are very important for that.