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

Bug 342180

Summary: [Xtend] problem with dispatch methods
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Flags: sven.efftinge: indigo+
Version: 2.0.0   
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-04-07 11:14:33 EDT
The following code generates wrong Java :

class Test  {
	dispatch x(String x) {
	}
	x(Object y) {
	}
}


Seems like the inference for the common super type calculation of parameters takes x(Object y) into account although it's not a dispatch method.
Comment 1 Sven Efftinge CLA 2011-04-08 04:34:45 EDT
pushed to master
Comment 2 Karsten Thoms CLA 2017-09-19 17:19:44 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:31:16 EDT
Closing all bugs that were set to RESOLVED before Neon.0