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

Bug 365076

Summary: [xtend] disallow recursion in create-expression in create methods
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Moritz Eysholdt CLA 2011-11-29 10:40:04 EST
example:

---
class bar  {
	new (bar x) {}
	def create new bar(newBar()) newBar() {} 
}
---

This kind of recursion circumvents the cache of a create method and should therefore be disallowed.
Comment 1 Sven Efftinge CLA 2011-11-29 17:04:56 EST
I don't think we need to do anything here. It's not different to recursion in regular methods.
Comment 2 Karsten Thoms CLA 2017-09-19 17:45:04 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:56:16 EDT
Closing all bugs that were set to RESOLVED before Neon.0