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

Bug 365070

Summary: [xtend] "it" and "this" should not be valid names for local members
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan, sven.efftinge, tmf.xtext-inbox
Version: unspecifiedFlags: moritz.eysholdt: juno+
Target Milestone: M5   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Moritz Eysholdt CLA 2011-11-29 10:04:35 EST
Example:

----
class bar  {
	int it
	int this
	def this() {}
	def it() {}
}
----

Any of these filed/method declarations should raise an error. Currently, there is no error and the generated Java code desn't compile because "this" is not a valid identifier in Java.
Comment 1 Sven Efftinge CLA 2011-11-29 10:16:36 EST
'it' is ok.
Comment 2 Jan Koehnlein CLA 2011-12-19 10:06:19 EST
Fix pushed to MASTER.
Comment 3 Karsten Thoms CLA 2017-09-19 17:53:10 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:03:53 EDT
Closing all bugs that were set to RESOLVED before Neon.0