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 98975 - RE Operation: Wrong ':length' Lifeline is created for the attribute of array object
Summary: RE Operation: Wrong ':length' Lifeline is created for the attribute of array...
Status: VERIFIED DUPLICATE of bug 119937
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Kris Richards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-26 14:20 UTC by Alexandr Scherbatiy
Modified: 2007-10-31 00:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
':length' Lifeline (9.89 KB, image/png)
2007-03-26 14:24 UTC, Alexandr Scherbatiy
Details

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

- Reverse engineer the operation and create a Sequence diagram
-----------------------------------------------
    void test(String[] m){
        for(int i=0; i < m.length; i++){
            m[i] = m[i].trim();
        }
    }
-----------------------------------------------

There is a wrong ':length' Lifeline on the diagram
Comment 1 Alexandr Scherbatiy 2007-03-26 14:24:40 UTC
Created attachment 39951 [details]
':length' Lifeline
Comment 2 Kris Richards 2007-09-12 22:16:40 UTC
This is a temporary fix. An imaginary attribute 'length' was added to the Object element in the library so that any array.length will be found and the lifeline 
created correctly.
Comment 3 Peter Lam 2007-09-20 02:24:16 UTC
verified in instrumented build 200709180324.
Comment 4 Peter Lam 2007-10-26 18:11:44 UTC
this is comes back in recent trunk build 20071025.
Comment 5 Peter Lam 2007-10-26 18:12:14 UTC

*** This issue has been marked as a duplicate of 119937 ***
Comment 6 Peter Lam 2007-10-31 00:29:18 UTC
verified in trunk build 20071030.