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 you have a class that references itself and try to safely delete it, it shows you warning that there are references to the class, while find usages reveals only self-references. Pressing Next, Do refactoring correctly deletes the class, but the warning is very misleading. I haven't even thought I could try pressing Next when I saw the warning first.
References to all elements from current selection should be ignored. If you select method foo() and method bar() and invoke Safe Delete - no warning should be shown in this case: private void foo() { bar(); } private void bar() { } Bharath, please take a look at it, thanks.
Fixed in trunk. /cvs/refactoring/src/org/netbeans/modules/refactoring/plugins/SafeDeleteRefactoringPlugin.java new revision: 1.15; previous revision: 1.14
Verified today.