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

Bug 365082

Summary: [xtend] Flag static create methods with an error
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Moritz Eysholdt <moritz.eysholdt>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dennis.huebner, sebastian.zarnekow, sven.efftinge
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Moritz Eysholdt CLA 2011-11-29 10:55:14 EST
Example:

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

The generated Java code is not compilable because neither the cache-filed nor the initializer-method are static.
Comment 1 Moritz Eysholdt CLA 2011-11-30 10:02:05 EST
Static create methods are now flagged with an error marker. Pushed to 'master'.
Comment 2 Karsten Thoms CLA 2017-09-19 17:45:52 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:56:51 EDT
Closing all bugs that were set to RESOLVED before Neon.0