Bug 205062

Summary: QVTO implementation incorrectly considered overloaded operations
Product: [Modeling] QVTo Reporter: Sergey Boyko <serg.boyko2011>
Component: EngineAssignee: Radomil Dvorak <dvorak.radek>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dvorak.radek
Version: unspecifiedKeywords: Documentation
Target Milestone: 2.0 RC   
Hardware: PC   
OS: Windows Vista   
Whiteboard: Usability

Description Sergey Boyko CLA 2007-10-01 10:46:21 EDT
NOTE: the following example should print "2" while actually it outputs "4"
NOTE2: override used here to show real complexity of tracing such bugs

modeltype Ecore uses "http://www.eclipse.org/emf/2002/Ecore";

transformation overload_bug();

main() {
	var e : EClassifier := object EClass{};
	e.a(1, 1);
}

query EClass::a(i : Integer, i1 : Integer) {
	dump('2');
}

query EClass::a(i : Integer, r : Real) {
	dump('4');
}

query EClassifier::a(i : Integer, r : Real) {
	dump('1');
}

query EClassifier::a(i : Integer, i1 : Integer) {
	dump('3');
}
Comment 1 Radomil Dvorak CLA 2009-05-12 11:35:37 EDT
Covered by #275887.