Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365057 - [Xtend] static member access must be fully qualified if local fields have the same name as the class
Summary: [Xtend] static member access must be fully qualified if local fields have the...
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 09:26 EST by Moritz Eysholdt CLA
Modified: 2012-11-08 04:24 EST (History)
2 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 09:26:02 EST
---- Xtend ---
class bar  {
	static int bar = 1
	int i = bar
}
-------------

compiles to

----- Java ------
public class bar {
  private static int bar = 1;
  
  private int i = bar.bar;
}
-----------------

In " private int i = bar.bar;" 
I expect "somepackage.bar.bar"  instead of "bar.bar". 

This is a compile error since the name of local member field shadows the name of the class.
Comment 1 Sven Efftinge CLA 2011-11-29 10:17:39 EST
not M4