This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 78707

Summary: RE doesn't properly work with variable number of operation parameters
Product: uml Reporter: bugbridge <bugbridge>
Component: Reverse EngineeringAssignee: issues@uml <issues>
Status: REOPENED ---    
Severity: blocker CC: akorostelev
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description bugbridge 2006-06-21 05:17:06 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original submitter: akorostelev

Description:
Roundtrip source-to-model doesn't support variable number of parameters in the
operator.

How to reproduce:
- create java project
- create RE uml project related to java project.
- add class diagram
- put class element on diagram and name it.
- go to source of the class.
- add method with variable number of parameters:
    public void test(String... f) { }
- Return to diagram.

created methhod appeared in class element but with one parameter only:
	public void test(String f)
Comment 1 Craig Conover 2006-10-12 01:06:54 UTC
This scenario is obsolete because of the Roundtrip Redisgn: issue 84855
Comment 2 Alexandr Scherbatiy 2006-10-13 14:56:15 UTC
Reverse engineer the java class:
-----------------------------------
public class Example {
    
    public void test(String... str) {
        for(String s : str){
            System.out.println(s);
        }
    }    
}
-----------------------------------

The Example class element has 'public void test()' operation
instead of 'public void test(String str[])' 
Comment 3 Joanne Lau 2008-06-20 00:01:29 UTC
still exists in 6.5