Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365076 - [xtend] disallow recursion in create-expression in create methods
Summary: [xtend] disallow recursion in create-expression in create methods
Status: CLOSED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 10:40 EST by Moritz Eysholdt CLA
Modified: 2017-09-19 17:56 EDT (History)
1 user (show)

See Also:


Attachments

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