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.
Build: 080327 1) Create a UML project and a Java application 2) DnD 2 class elements (c1, c2) and an interface (i1) to the class diagram editor Add an operation (c1_p1) to class c1 Add an operation (c2_p1) to class c2 Add an operation (p1) to interface i1 3) Create an implementation link from c1->i1 and c2->i1 4) Create a generalization link from c1->c2, select c2 in the operation redefined dialog 5) Right click on the UML project -> Generate code 6) In the Projects tree, right click c1 node -> Navigate to source Add a parameter "int dd" to c2_p1 method 7) In the source editor, right click -> Reverse Engineer Click "Yes to All" in "the Model Element Overwrite Authorization" popup 8) Click the Class diagram tab NPE is thrown followed by java.lang.Throwable The issue is that it does not automatically save the diagram after reverse engineering.
Created attachment 59312 [details] java.lang.Throwable attached
Created attachment 59313 [details] NPE attached
will look for first part, may be second will go away after fix for first one.
can' reproduce throwble, but see NPE on attempt to save diagram after re but not the same as attached. may be n issue with steps: step 1-2: was uml project created with suggested class diagram or class diagram was added later and may be scoped to a package? step 4-5: was it saved after step4? if there is no more throable, it looks like persistence-re integration issue (no save on re)
Created attachment 59967 [details] new npe
it seems I got "old" npe after restart and attempt2, I alos fixed Throable for now which is caused by incomlete save (with npe) without closing of opened streams.
Fixed the exception in persistence code. But there is still a bug in update-model that has to send appropriate model change information to the diagram. Assigning it to Trey.
what was the main issue, exception or not saved diagram? is not saved diagram an issue? I currently don't see any exceptions or can' reproduce the issue, I see another issue, lost redefined block in c1 after reverse engineering, but it's in my opinion shoud be separate issue.
Jyothi fixed main issues some time ago, if any remains should be tracked by separate issues.
verified in 080623