Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362695 - [Xtend] Create Extensions calling an extension lead to uncompileable code
Summary: [Xtend] Create Extensions calling an extension lead to uncompileable code
Status: CLOSED DUPLICATE of bug 362868
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 12:15 EDT by Christian Dietrich CLA
Modified: 2011-11-07 13:53 EST (History)
3 users (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Dietrich CLA 2011-11-02 12:15:25 EDT
Build Identifier: 2.1.0

The Following Xtend class does not compile to java

class Lala {
    
	def create _this : if (s == "EOF") {doit();new A()} else {new B()} createTheStuff(String s) { 
	}
	
	def doit() {
	}
	
}

A and B are just two dummy classes.

The code that is generated is 

 Lala _Lala = Lala;
 _Lala.doit();

But i guess it should be

 Lala _Lala = Lala.this;
 _Lala.doit();

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-11-07 13:53:30 EST

*** This bug has been marked as a duplicate of bug 362868 ***