Community
Participate
Working Groups
RUIHandler Testcase: package client; // RUI Handler handler testTimeStamp type RUIhandler{initialUI =[ ], onConstructionFunction = start, title = "testTimeStamp"} myTime TimeStamp = new TimeStamp{}; myDate Date = new Date{}; function start() end end The generation for new TimeStamp{} is this.myTime = new Date(egl.eglx.lang.ETimestamp.YEAR_CODE, egl.eglx.lang.ETimestamp.SECOND_CODE); Where egl.eglx.lang.ETimestamp.YEAR_CODE and egl.eglx.lang.ETimestamp.SECOND_CODE are invalid. Thus, this.myTime is invalid.
Fixed
The test case now has a compile error in this line myTime TimeStamp = new TimeStamp{};
Ji Yong, This is not an error, and certainly not an issue with JS gen: as the compile error says, you cannot instantiate a timestamp this way. I believe the equivalent is to do this: myTime TimeStamp = new date;
Verified in build 201110241434