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.
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) -------------------------------------------
Created attachment 35469 [details] MyLog Java Project
Created attachment 35470 [details] Argiments for Enumeration Literal Constructors are missed
low use case not currently impacting our installed user base.
*** This issue has been marked as a duplicate of 82881 ***