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

Summary: Collections that have members from library are not shown as association link with multiplicity after RE
Product: uml Reporter: Alexandr Scherbatiy <sunflower>
Component: Reverse EngineeringAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 78405    
Bug Blocks:    

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.