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.

Bug 82378 - negative answer in delete associated methods dialog doesnt stop methods removing
Summary: negative answer in delete associated methods dialog doesnt stop methods removing
Status: VERIFIED INVALID
Alias: None
Product: uml
Classification: Unclassified
Component: Synchronization (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-08-10 12:55 UTC by Andrew Korostelev
Modified: 2006-10-13 13:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2006-08-10 12:55:56 UTC
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.
Comment 1 Andrew Korostelev 2006-08-10 12:56:54 UTC
see also http://www.netbeans.org/issues/show_bug.cgi?id=80730
Comment 2 Craig Conover 2006-08-10 23:27:08 UTC
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.
Comment 3 Craig Conover 2006-10-12 00:31:46 UTC
This scenario is obsolete because of the Roundtrip Redisgn: issue 84855
Comment 4 Andrew Korostelev 2006-10-13 13:39:22 UTC
verified in all-nbms-griffin-061012_6 on nb55rc2