Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365070 - [xtend] "it" and "this" should not be valid names for local members
Summary: [xtend] "it" and "this" should not be valid names for local members
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: M5   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 10:04 EST by Moritz Eysholdt CLA
Modified: 2017-09-19 18:03 EDT (History)
3 users (show)

See Also:
moritz.eysholdt: juno+


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: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