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

Bug 356147

Summary: Wrong code generated for EGLProperty in eze$$getChildVariables
Product: z_Archived Reporter: Yun Feng Ma <mayunf>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: greer, jspadea
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch lasher: iplog+

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.