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 171662

Summary: [Safe Delete] doesn't support the deletion of unused polymorphic methods [68cat]
Product: java Reporter: matthies <matthies>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description matthies 2009-09-07 20:40:59 UTC
Safely Delete doesn't support removal of an unused method if it is implemented or overridden in subclasses, because 
these implementations for some reason count as usages of the method. One would expect that the refactoring removes the 
implementations and/or overrides as well (if they are indeed unused), or possibly just removes @Override annotations 
that otherwise would cause an error after the base method has been deleted. Ideally, both options would be available. 
Currently one has to first manually remove all implementations/overrides, which in general immediately causes 
compilation errors when the base method is abstract.
Comment 1 Ralph Ruijs 2014-10-22 17:32:12 UTC
changeset:   3bf2a82be465
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Wed Oct 22 16:02:40 2014 +0200
summary:     #171662 - [Safe Delete] doesn't support the deletion of unused polymorphic methods [68cat]
Comment 2 Quality Engineering 2014-10-29 11:42:30 UTC
Integrated into 'main-silver', will be available in build *201410290913* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3bf2a82be465
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #171662 - [Safe Delete] doesn't support the deletion of unused polymorphic methods [68cat]