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 - Class to Enumetion transformation creates public constructorra
Summary: Class to Enumetion transformation creates public constructorra
Status: RESOLVED WONTFIX
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-13 14:42 UTC by Alexandr Scherbatiy
Modified: 2009-01-23 14:58 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 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