Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356915 - In some cases int to string produces un-executable code
Summary: In some cases int to string produces un-executable code
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 07:18 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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