| Summary: | In some cases int to string produces un-executable code | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Joseph Vincens <jvincens> |
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | greer |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Joe, There is a general problem with the way ezeCast is being generated; essentially, it needs to go thru the BoxingExpression stuff in JS gen in order to encode the data using the old runtime's convention for boxing. Fixed as described in comment #1. verified |
given the EGL: i1 int[] = [1,2,3]; syslib.writestdout(i1.getSize()); The int to string conversion in the writestdout is not executable. The generated code: var i1 = []; i1 = [1, 2, 3].setType("i;"); var eze$Temp1 = ""; eze$Temp1 = egl.egl.lang.EString.ezeCast(i1.getSize()); EString.ezeCast does egl.convertAnyToString which does any.eze$$signature.charAt(0) and eze$$signature is not defined