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 194592

Summary: [70cat] Change Method Parameters doesn't allow Removing and Adding a same-named parameter
Product: java Reporter: matthies <matthies>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 7.0   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 65780    
Attachments: suggested fix

Description matthies 2011-01-21 17:59:42 UTC
When invoking Change Method Parameters on a method with a parameter named "x", removing that parameter and then adding a parameter also named "x" show the error message "Name "x" is already used as a name of local variable" although the original "x" had been removed.
Comment 1 Ralph Ruijs 2011-05-09 12:06:03 UTC
Created attachment 108193 [details]
suggested fix
Comment 2 Jan Becicka 2011-05-09 12:35:15 UTC
Patch looks good.
Comment 3 Ralph Ruijs 2011-05-09 12:56:35 UTC
Changeset: 5e4f1063aaf0
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2011-05-09 14:43
Message:   
Issue #194592 - [70cat] Change Method Parameters doesn't allow Removing and Adding a same-named parameter
Comment 4 Quality Engineering 2011-05-11 19:40:33 UTC
Integrated into 'main-golden', will be available in build *201105111436* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5e4f1063aaf0
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #194592 - [70cat] Change Method Parameters doesn't allow Removing and Adding a same-named parameter