Bug 447128 - Getter prevents using static member access with a dot
Summary: Getter prevents using static member access with a dot
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.8.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-14 11:07 EDT by Dennis Huebner CLA
Modified: 2015-02-25 03:05 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Huebner CLA 2014-10-14 11:07:42 EDT
import org.eclipse.emf.common.util.URI

class Test2 {
	
	def URI getURI(){
		return URI.createURI("myURI")
	}
}

return URI. links against getURI() so an error is reported: "The static method createURI(String) should be accessed in a static way"
Comment 1 Sebastian Zarnekow CLA 2014-11-15 07:30:38 EST
Not sure if we should change the precedence here, though it has caused confusion quite often.
Comment 2 Sven Efftinge CLA 2015-02-02 07:19:30 EST
As a "simple" help, we could discourage property access when the property starts with upper case.