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 111961 - Constructor is not removed when transform class to enum
Summary: Constructor is not removed when transform class to enum
Status: RESOLVED INVALID
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-08-03 22:51 UTC by Sherry Zhou
Modified: 2007-08-03 23:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sherry Zhou 2007-08-03 22:51:18 UTC
build 070803

1. Create a class diagram. Add a class element and name it.
2. Generate code
3. Transform this class to enum. 
4. Generate code
-- The constructor is still there. The generated code as shown below:
public enum myclass3 {

    ; 
    myclass3 () {
    }

}
Comment 1 Viktor Lapitski 2007-08-03 23:07:37 UTC
A constructor is a legal thing in an enum. Thus it is left in the model 
after transformation, thus it is code generated.