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 78409 - RE Operation: Name of Lifeline is incorrectly created from loop statement
Summary: RE Operation: Name of Lifeline is incorrectly created from loop statement
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Kris Richards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 23:23 UTC by bugbridge
Modified: 2007-03-26 22:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
for loop test (74.70 KB, application/octet-stream)
2006-06-19 23:24 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-06-19 23:23:49 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original submitter: sunflower

Description:
Steps to reproduce:

- Do Reverse Engineering of 'testLoopFor' method and create a Sequence diagram:

  ---------------------------------------------------------------
 
    public void testLoopFor(){
        
        String parse = "1 2 3 4 5";
        String res = "";
        
        for( StringTokenizer token = new StringTokenizer(parse);
token.hasMoreTokens(); ){
            res += token.nextToken();
        }
        
    }
    
  ---------------------------------------------------------------

- There is the ':token' Lifeline on the Sequence diagram.
  The name of Lifeline is incorrect wrong because there is no
  'token' Class in the project. The name of Lifeline
  should be 'token: StringTokenizer' (See attached picture).
Comment 1 Peter Lam 2006-06-19 23:24:46 UTC
Created attachment 31191 [details]
for loop test
Comment 2 Kris Richards 2007-03-16 21:38:21 UTC
Issue 78409 - MethodLoopStateHandler.createSubStateHandler - the pOptions was a dead call. The 
addInitializerState seemed to correctly add the new StateHandler to the stack, but then 
"this" (MehodLoopStateHandler) was returned. So added the call to retrieveStatementHandler to retrieve 
the handler created to handle the variable definition. Also, of course, removed the retVal=this line.
Comment 3 Alexandr Scherbatiy 2007-03-21 13:47:11 UTC
verified