Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354953 - Invalid code generated when nesting New statements
Summary: Invalid code generated when nesting New statements
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matt Heitz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-17 10:19 EDT by Brian Svihovec CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (show)

See Also:


Attachments
EGL Project containing the source listed in the Defect Description. (12.67 KB, application/zip)
2011-08-17 10:19 EDT, Brian Svihovec CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.