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 78420

Summary: RE Operation: Some unnecessary Lifelines are created from array attribute
Product: uml Reporter: bugbridge <bugbridge>
Component: Reverse EngineeringAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: sunflower
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: img

Description bugbridge 2006-06-19 23:54:03 UTC
Original submitter: sunflower

Description:
Steps to reproduce:

- Reverse Engineer  'RectangularMatrix getCopy()' method from
'RectangularMatrix' class
  and create a Sequence diagram:

  ---------------------------------------------------------------
  public class RectangularMatrix {
    
    protected final int dimN;
    protected final int dimM;
    
    protected final double element[][];
    
    public RectangularMatrix(int dimN, int dimM) {
        this.dimN = dimN;
        this.dimM = dimM;
        element = new double[ this.dimN ][ this.dimM ];
    }
    
    public RectangularMatrix getCopy() {
        
        RectangularMatrix copy = new RectangularMatrix(dimN, dimM);
        
        for(int i=0; i< dimN;  i++){
            for(int j=0; i< dimM;  j++){
                copy.element[i][j] = element[i][j];
            }
        }
        
        return copy;
    }
  }
  ---------------------------------------------------------------

  There are 'element:double' and 'element[]:double' Lifelines 
    on the Sequence diagram which are not used within the method.
Comment 1 Sergey Petrov 2006-06-20 13:37:06 UTC
Created attachment 31221 [details]
img