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 87779 - RE does not store constructor's arguments for enumeration literals in Model
Summary: RE does not store constructor's arguments for enumeration literals in Model
Status: RESOLVED DUPLICATE of bug 82881
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 14:38 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
MyLog Java Project (9.10 KB, application/octet-stream)
2006-10-23 14:40 UTC, Alexandr Scherbatiy
Details
Argiments for Enumeration Literal Constructors are missed (122.68 KB, image/png)
2006-10-23 14:47 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-10-23 14:38:03 UTC
Steps to reproduce:

- Reverse Engineer the attached project
- Create a Class diagram for 'MyLogger' and 'LogFormatter' elements
  'MyLogger' enumeration element contains 'Diagram', 'DiagramElement'
   and others enumeration literals.
  The enumeration literals do not have the original values of constructors
  arguments.


- Generate code for UML project

  The original code is:
-------------------------------------------
public enum MyLoggger {
 
    Diagram(true),
    DiagramElement(true);    
    // others literals   
    private Logger logger;
    boolean on;
    
    MyLoggger(boolean on){
    }
    // others code
}
-------------------------------------------
The generated code is:
-------------------------------------------
public enum MyLoggger {Diagram, DiagramElement;
                       //     ^^             ^^  
    private Logger logger;

    boolean on;

    MyLoggger(boolean on) {
    }

    public java.util.logging.Logger getLogger() {
        return null;
    }
}
-------------------------------------------

- Fix imports for generated project
 The generated project is not compiled:
-------------------------------------------
error: cannot find symbol
symbol  : constructor MyLoggger()
location: class util.MyLoggger
1 error
BUILD FAILED (total time: 1 second)
-------------------------------------------
Comment 1 Alexandr Scherbatiy 2006-10-23 14:40:53 UTC
Created attachment 35469 [details]
MyLog Java Project
Comment 2 Alexandr Scherbatiy 2006-10-23 14:47:19 UTC
Created attachment 35470 [details]
Argiments for Enumeration Literal Constructors are missed
Comment 3 Peter Lam 2007-03-20 23:22:54 UTC
low use case not currently impacting our installed user base.
Comment 4 Viktor Lapitski 2007-07-14 02:02:13 UTC

*** This issue has been marked as a duplicate of 82881 ***