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 89217

Summary: Class to Enumetion transformation creates public constructorra
Product: uml Reporter: Alexandr Scherbatiy <sunflower>
Component: Code GenerationAssignee: issues@uml <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Alexandr Scherbatiy 2006-11-13 14:42:53 UTC
Steps to reproduce:

- Put a Class element on the diagram and name it
- Generate code for the Class element
- Transform the element to Enumeration
- Generate Code for the element
  The public constructor is generated 
------------------------------------------------
public enum A {;
    public A() {
    }
}
------------------------------------------------

  Note that the parent class has default protected constructor.
------------------------------------------------
  UMLProject1Sources\src\pack\A.java:4: modifier public not allowed here
    public A() {
  1 error
------------------------------------------------
Comment 1 Craig Conover 2007-06-26 03:52:43 UTC
this problem still exists with new code gen module
Comment 2 Joanne Lau 2008-06-18 19:03:59 UTC
Transform not yet implemented in 6.5
Comment 3 Sergey Petrov 2009-01-23 14:58:28 UTC
transfor isn't implemented