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 98458 - RE Operation: Messages are incorrectly connected for array elements
Summary: RE Operation: Messages are incorrectly connected for array elements
Status: RESOLVED INVALID
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-21 13:01 UTC by Alexandr Scherbatiy
Modified: 2007-08-21 20:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sequence diagram (37.03 KB, image/png)
2007-03-21 13:02 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-21 13:01:37 UTC
Steps to reproduce:

- Reverse engineer the test method and create a Sequence diagram:
----------------------------------------------------------------
    public void test(){
        
        Object a[] = { new Object()} ;
        Object b[] = { new Object()} ;
        
        String c[] = { "" } ;
        
        for( int i = 0; i < c.length; i++ ){
            c[i] = a[i].toString().concat( b[i].toString() );
        }
        
    }
----------------------------------------------------------------

 Both 'toString()' messages are incorrectly connected to ':Object' lifeline
 not to a[i] and b[i] elements
Comment 1 Alexandr Scherbatiy 2007-03-21 13:02:12 UTC
Created attachment 39748 [details]
Sequence diagram
Comment 2 Kris Richards 2007-08-21 20:55:37 UTC
this is not a bug. The objects a[i] and b[i] are of type Object. Therefore the toString() calls should be attached to the Object life line.