Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356915

Summary: In some cases int to string produces un-executable code
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: 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:

Description Joseph Vincens CLA 2011-09-07 07:18:16 EDT
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
Comment 1 Scott Greer CLA 2011-09-07 08:58:21 EDT
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.
Comment 2 Scott Greer CLA 2011-09-10 16:31:09 EDT
Fixed as described in comment #1.
Comment 3 Joseph Vincens CLA 2011-09-12 08:39:45 EDT
verified