Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324697 - [Duplicate] Generation errors with some overloaded methods in test
Summary: [Duplicate] Generation errors with some overloaded methods in test
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Tools (show other bugs)
Version: 2.7.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Steinberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 320002
Blocks: 323181
  Show dependency tree
 
Reported: 2010-09-07 16:31 EDT by Ed Merks CLA
Modified: 2010-11-05 05:41 EDT (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 Ed Merks CLA 2010-09-07 16:31:10 EDT
+++ This bug was initially created as a clone of Bug #320002 +++

Build Identifier: M20100211-1343

I have a situation where I have pretty similar overloaded methods that generate the same test signature, where one is an Object[] and the other is a simple object.:

EList<EObject> runLibMethodList(String libraryId, String methodName, Object[] args);

EList<EObject> runLibMethodList(String libraryId, String methodName, Object arg);

will generate:
* Tests the '{@link com.castortech.iris.utils.eclipse.emf.EObject#runLibMethodList(java.lang.String, java.lang.String, java.lang.Object[]) <em>Run Lib Method List</em>}' operation.
public void testRunLibMethodList__String_String_Object() {

* Tests the '{@link com.castortech.iris.utils.eclipse.emf.EObject#runLibMethodList(java.lang.String, java.lang.String, java.lang.Object) <em>Run Lib Method List</em>}' operation.
public void testRunLibMethodList__String_String_Object() { 

Reproducible: Always
Comment 1 Ed Merks CLA 2010-09-07 16:32:04 EDT
The fix has been committed to CVS for 2.7.
Comment 2 Kenn Hussey CLA 2010-09-28 11:32:03 EDT
(In reply to comment #1)
> The fix has been committed to CVS for 2.7.

This "fix" has broken cases (e.g., in UML2) involving overridden operations (where test methods with the same signature should be generated on both the superclass and the subclass). :(
Comment 3 Ed Merks CLA 2010-11-05 05:41:33 EDT
The fix is available in the latest build for the stream.