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

Bug 364833

Summary: Quick assist for "turn into dispatch"
Product: [Tools] Xtend Reporter: Volker Wegert <eclipse>
Component: BacklogAssignee: Project Inbox <xtend-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Volker Wegert CLA 2011-11-25 07:52:42 EST
Build Identifier: 20110916-0149

It would be cool if Xtend 2 could display an error marker if I've got two methods which really should be a dispatch method, but where the dispatch keyword was accidentally left out (same name and same signature except for the first parameter, classes of the first parameter have a common superclass - something like that?)

Reproducible: Always
Comment 1 Sven Efftinge CLA 2011-11-25 08:10:36 EST
There are reasons to overload methods like in Java (i.e. static dispatch).
We could imply the dispatch for all overloaded method if we would think differently.

Note that we have a warning if you have dispatch on some but not all of the overloaded methods.
Comment 2 Sebastian Zarnekow CLA 2011-11-25 08:14:16 EST
I think a quickassist 'make dispatch' would be nice but I doubt that an error-marker or a warning would do any good.