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 - RE doesn't properly work with variable number of operation parameters
Summary: RE doesn't properly work with variable number of operation parameters
Status: REOPENED
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 05:17 UTC by bugbridge
Modified: 2009-05-25 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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