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 97838 - Collections that have members from library are not shown as association link with multiplicity after RE
Summary: Collections that have members from library are not shown as association link...
Status: NEW
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: 78405
Blocks:
  Show dependency tree
 
Reported: 2007-03-14 14:59 UTC by Alexandr Scherbatiy
Modified: 2007-05-21 23:03 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2007-03-14 14:59:28 UTC
Steps to reproduce:

- Reverse engineer the Test java class:
-------------------------------------------------
import java.util.List;

public class Test {

    List<String> stringList;
}
--------------------------------------------------
Comment 1 Alexandr Scherbatiy 2007-03-14 15:07:27 UTC
- Select the Test class and generate a Dependency diagram
  The stringList is shown as attribute on the diagram.
  It needs that there should be an Association multiplicity link
  between Test class and String Datatype.

  See also issue 94859 Links with multiplicity ends are not drawn for attributes
that have Collection type
Comment 2 Trey Spiva 2007-03-15 17:16:32 UTC
The fact that an attribute is created for Datatypes is to limit the number of association created.  So, any 
type that is outside of the system (ie DataTypes) are created as attributes not associations.

It would be nice to have an action that allows the user to quickly turn an attribute into an association, and  
vice versa.
Comment 3 Trey Spiva 2007-05-21 23:03:10 UTC
Since this is by design, I am marking it as enhancement.