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 MyClass java class into UML project: ------------------------------------------------------------------ package pack; public class MyClass private class Node{ Node next; Object element; Node(Object element, Node next){ this.element = element; this.next = next; } Object getElement(){ return element; } Node getNext(){ return next; } } } ------------------------------------------------------------------ - Create a Class diagram from the 'MyClass' element - Generate code for the 'MyClass' element The source code is: ------------------------------------------------------------------ package pack; public class MyClass { private class Node { Object element; Node(Object element, pack.MyClass$Node next) { } Node(Object element, pack.MyClass$Node next) { } Object getElement() { return null; } pack.MyClass$Node getNext() { return null; } } } ------------------------------------------------------------------ The 'Node' nested class has two identical constructors.
This is the basic of code generation. change to P1.
Observation: If you Gen Code for whole project, the inner class constructor gets duplicated. But if you Gen Code directly on the element, inner class constructor only get created once. ???
We where not resolving types names that where inner classes.
verified in all-nbms-griffin-061023