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 54652

Summary: Cannot remove parameter from method signature
Product: editor Reporter: _ rkubacki <rkubacki>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Severity: blocker CC: huntch
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 65780    

Description _ rkubacki 2005-02-08 09:21:58 UTC
dev build of 4.1 from Feb 7, JDK 5.0u1

there is a refactoring called change method
signature but it does not allow me to remove
existing method parameter.
Comment 1 Martin Matula 2005-02-08 09:29:21 UTC
It does allow you to remove the parameter. But only if it is not used.
This is as designed - if we allow to remove used parameters, we would
not know how to refactor the code to make it compilable. People would
then file issues that the refactoring breaks their code. We can
consider this as an enhancement request (probably if we display a
warning that a given parameter is used, removal could be fine).
Comment 2 _ rkubacki 2005-02-08 09:36:54 UTC
Now I see. 
Comment 3 Ralph Ruijs 2011-05-23 12:31:15 UTC
Warning was added in:
46114:0fc688ea33f5 - Jun 12, 2007
Comment 4 Ralph Ruijs 2011-06-06 12:32:52 UTC
*** Bug 53146 has been marked as a duplicate of this bug. ***