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

Bug 359511

Summary: Assign String value to float type will cause runtime error
Product: z_Archived Reporter: Huang Ji Yong <hjiyong>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: greer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Huang Ji Yong CLA 2011-09-29 23:25:27 EDT
Testcase:
aFloat Float;
    function start()
    	aFloat = "300";
    	syslib.writeStdout(aFloat);
    end

------------
The generated js for aFloat = "300" is
this.aFloat = egl.eglx.lang.EFloat64.fromEString("300");
Where formEString method is undefined.
-----------
In RBD, this RUIHandler works fine.
If string type is not allowed to assign to float type, a compile error should be generated.
Comment 1 Scott Greer CLA 2011-10-06 12:24:28 EDT
Fixed.
Comment 2 Huang Ji Yong CLA 2011-10-21 00:40:52 EDT
Verified in 201110202102