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

Bug 343091

Summary: [Xtend] Missleading feature-linking error message
Product: [Tools] Xtend Reporter: Sven Efftinge <sven.efftinge>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dennis.huebner, sebastian.zarnekow
Version: 2.2.0Flags: sven.efftinge: kepler+
Target Milestone: M6   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 376037    
Bug Blocks:    

Description Sven Efftinge CLA 2011-04-18 03:00:30 EDT
for the expression 

myList.sort( e | e.toString )

I got a marker about a static methods are not allowed.
However, the problem is an incompatible argument (a comparator is expected)
Comment 1 Sven Efftinge CLA 2011-04-18 03:04:51 EDT
I have renamed sortBy to sort in the library. So the example doesn't work anymore :-)
But the problem is still there.
Comment 2 Sven Efftinge CLA 2011-04-18 03:20:23 EDT
forget my last comment. The function is still named 'sortBy' and the problem can therefore reproduced like described in the initial comment.
Comment 3 Sebastian Zarnekow CLA 2011-05-04 06:11:33 EDT
Preliminary scheduled for 2.0RC1
Comment 4 Sven Efftinge CLA 2011-05-04 09:59:06 EDT
postponed to SR1
Comment 5 Sven Efftinge CLA 2011-09-26 09:15:13 EDT
not 2.1
Comment 6 Dennis Huebner CLA 2013-02-13 04:16:26 EST
With the given example and the actual state I got the following marker:

Incompatible types. Expected Comparator<? super Object> but was (Object)=>String


def test343091() {
	val myList = newArrayList()
	myList.sort( e | e.toString )//ERROR
}
Comment 7 Dennis Huebner CLA 2013-02-13 04:53:59 EST
Was fixed in the meantime
Comment 8 Eclipse Webmaster CLA 2017-10-31 11:24:36 EDT
Requested via bug 522520.

-M.