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

Bug 354953

Summary: Invalid code generated when nesting New statements
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Matt Heitz <mheitz>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas, mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
EGL Project containing the source listed in the Defect Description. none

Description Brian Svihovec CLA 2011-08-17 10:19:28 EDT
Created attachment 201646 [details]
EGL Project containing the source listed in the Defect Description.

For example:

var1 Handler1{ children = [ new Handler2{ children = [new Handler3{} ] } ] }; 

I have attached a project archive for the above source.  The line above is found in RootHandler.  The generated code for RootHandler contains syntax errors. 

The following code does not produce syntax errors:

var1 Handler1{ children = [ new Handler2{} ] };
Comment 1 Jeff Douglas CLA 2011-09-15 22:39:06 EDT
fixed
Comment 2 Lisa Lasher CLA 2011-10-11 16:29:08 EDT
Closing this defect.