Bug 205062 - QVTO implementation incorrectly considered overloaded operations
Summary: QVTO implementation incorrectly considered overloaded operations
Status: RESOLVED FIXED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 2.0 RC   Edit
Assignee: Radomil Dvorak CLA
QA Contact:
URL:
Whiteboard: Usability
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2007-10-01 10:46 EDT by Sergey Boyko CLA
Modified: 2009-05-28 17:56 EDT (History)
1 user (show)

See Also:


Attachments

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