Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343091 - [Xtend] Missleading feature-linking error message
Summary: [Xtend] Missleading feature-linking error message
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 376037
Blocks:
  Show dependency tree
 
Reported: 2011-04-18 03:00 EDT by Sven Efftinge CLA
Modified: 2017-10-31 11:24 EDT (History)
2 users (show)

See Also:
sven.efftinge: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.