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 070723 1. Add a package element to a class diagram, name it pkg 2. Add a class element and link it to the package, and name it Class1 3. Invoke code generation 4. In the java project where the code generated, right click at pkg select New >Class File to create a class named Class2. 5. Reverse Class2.java -- the pkg element disappears in the diagram.
The regression surfaced after the fix in diagram deep synchronization logic which happens after RE, see issue 82727, issue 87841. The current RE design has limitations on partial RE that can not capture all relationships required to update model / diagram. User should be advised against this approach. In this case, user should RE entire package again to properly update the model.