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 118427 - RE Operation: using CDFS to do re operation results in an extra operation in the class
Summary: RE Operation: using CDFS to do re operation results in an extra operation in ...
Status: VERIFIED FIXED
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: 118432
  Show dependency tree
 
Reported: 2007-10-10 18:25 UTC by Peter Lam
Modified: 2007-10-23 01:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
re-operation result (27.53 KB, image/png)
2007-10-10 18:26 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2007-10-10 18:25:13 UTC
This was fixed once in issue 97560 but it's coming back now.
There is no extra operation if using "Reverse Engineer Operation" menu item.

Repro steps:
- create a java project with the following class

import javax.swing.JDialog;
  public class TestDialog extends JDialog {
    
    public TestDialog() {
        initComponents();
    }
        
    public void initComponents(){
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    }    
  }

- reverse engineer the java project
- cdfs the operation "initComponents" to a sequence diagram
- expand the nodes again and "public setDefaultCloseOperation(int operation)" is now a new operation in class
TestDialog. See attached screenshot.
Comment 1 Peter Lam 2007-10-10 18:26:06 UTC
Created attachment 50611 [details]
re-operation result
Comment 2 Kris Richards 2007-10-11 22:01:09 UTC
This is an issue with the java16.etd file. Need to add package token descriptors.
Comment 3 Kris Richards 2007-10-16 03:15:00 UTC
Added TokenDescriptor elements to the java16 library. In OperationRE, added check for null cpClassifier. If the classifier is null, then it needs the entire path 
to resolve the class. This is done in getOperation. In MethodEvent.getFullQNameOfValue was changed to get the class right away and then build the name. The 
REClass.getPackage works now that the Library contains the TokenDescriptors for the package in the UML:Class elements.
Comment 4 Peter Lam 2007-10-23 01:07:51 UTC
verified in trunk build 20071022.