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.
if user after attribute removing answers 'No' in 'delete associated methods' dialog, methods will be removed anyway. how to reproduce: 1. create package with scoped diagram 2. place 'Test' class 3. add attribute 'x' 4. in source start to type (not copy )the following comment for an attribute. /** * comment 5.while you are typing dialog "Delete associated methods" appears. It suggests to remove getter/setter methhods for 'x' while you wanted only to add a comment... 6. answer "No". expand class node in uml model tree. getter/setter methhods are removed from there anyway.
see also http://www.netbeans.org/issues/show_bug.cgi?id=80730
Reviewed: because the file appears to cut off after the uncompleted comment, UML project has nothing more to go on. The JavaModel (source code) is telling UML that there is no longer an attribute or any getter/setter. The file is in a non-compilable state, so UML's RoundTrip mechanism is really in the dark. We have plans to address this larger issue (non-compilable sources) with a more overarching correction to how we respond to JavaModel events.
This scenario is obsolete because of the Roundtrip Redisgn: issue 84855
verified in all-nbms-griffin-061012_6 on nb55rc2