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: - Create a Java project - Create a UML project associated with the Java project - Create a Class diagram - Add Class Element on the diagram and name it 'A' - Add Class Element on the diagram and name it 'B' - Go to source of 'B' class - Add new 'private A a = new A()' attribute into the 'B' class - Go to the Class Diagram - Rename 'A' class element to 'C' - Go to source of 'B' class 'a' attribute initialization is not changed to 'new C()'. Project is not compiled: JavaApplication\src\pack\B.java:5: incompatible types found : pack.A required: pack.C private C a = new A(); 1 error BUILD FAILED (total time: 0 seconds)
Created attachment 31651 [details] Attribute initialization is not updated
This scenario is obsolete because of the Roundtrip Redisgn: issue 84855
verified in all-nbms-griffin-061012_6 on nb55rc2 now this bug most likely belongs to class diagram (while mostly effects code_generation). But not sure requested functionality should be supported by class diagram. steps: - in java project create classes A and B. - add new 'private A a = new A()' attribute into the 'B' class - RE java project to uml project. - CDFS class diagram from A and B. NAvigable aggregation will appear between them. - on diagram rename A to C. - open properties for aggregation link - find 'Part end' block of properies. - look at 'Default' property value. It is still 'new A()'. Default value wasn't removed and will be generated as is into source code.
Planned for drawing area upgrade after NB 6.0.
Should not use resolved/later status.
Targeted in drawing area redesign.
Restoring original priority and using the standard NB waiver process.
Diagram area bugs waived for 6.0 will also be waived for 6.1.
it's advanced re-factoring support request, when initial value is always just a literal in nb uml.