Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356147 - Wrong code generated for EGLProperty in eze$$getChildVariables
Summary: Wrong code generated for EGLProperty in eze$$getChildVariables
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 01:09 EDT by Yun Feng Ma CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (show)

See Also:


Attachments
Patch (3.30 KB, patch)
2011-08-30 01:14 EDT, Yun Feng Ma CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yun Feng Ma CLA 2011-08-30 01:09:51 EDT
Build Identifier: 

For a Field in a Widget, like below:
   text String{@EGLProperty{setMethod = setText, getMethod = getText}, @VEProperty{}};

The generated codes in eze$$getChildVariables are wrong, below are the generated codes:
		"eze$$getChildVariables": function() {
			var eze$$parent = this;
			return [
			{name: "text", value : function(){try{return eze$$parent.,
						"getText": function() {
							return text;
						}
			;}catch(e){return e;}}(), type : "eglx.lang.EString", jsName : "text"}
			];
		}

Reproducible: Always
Comment 1 Yun Feng Ma CLA 2011-08-30 01:14:39 EDT
Created attachment 202379 [details]
Patch

Here is a patch, please review it. Thanks a lot.
Comment 2 Scott Greer CLA 2011-09-01 15:24:10 EDT
Justin, 

This looks like dev mode logic;  can you take a look at the patch and commit it if warranted?   Thanks!
Comment 3 Yun Feng Ma CLA 2011-09-05 21:15:11 EDT
Looks like this patch has been committed. Justin, FYI. Thanks.
Comment 4 Yun Feng Ma CLA 2011-10-21 04:24:22 EDT
Verified with build 20111020. close this.