Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364833 - Quick assist for "turn into dispatch"
Summary: Quick assist for "turn into dispatch"
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 07:52 EST by Volker Wegert CLA
Modified: 2012-11-08 04:23 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 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.