| Summary: | New Timestamp generates incorrect javascript | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Huang Ji Yong <hjiyong> |
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | greer |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
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 |
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.