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 - RE Operation: Some unnecessary Lifelines are created from array attribute
Summary: RE Operation: Some unnecessary Lifelines are created from array attribute
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:
Blocks:
 
Reported: 2006-06-19 23:54 UTC by bugbridge
Modified: 2009-05-25 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
img (74.84 KB, image/png)
2006-06-20 13:37 UTC, Sergey Petrov
Details

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