Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359511 - Assign String value to float type will cause runtime error
Summary: Assign String value to float type will cause runtime error
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 23:25 EDT by Huang Ji Yong CLA
Modified: 2017-02-23 14:16 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 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