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

Bug 324697

Summary: [Duplicate] Generation errors with some overloaded methods in test
Product: [Modeling] EMF Reporter: Ed Merks <Ed.Merks>
Component: ToolsAssignee: Dave Steinberg <davidms>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Kenn.Hussey, picard
Version: 2.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Bug Depends on: 320002    
Bug Blocks: 323181    

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.