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 82408

Summary: [Rename] Parameter can by renamed to already used name
Product: editor Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: issues@java <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2006-08-10 17:52:36 UTC
NetBeans IDE Dev (Build 200608091800)
1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b03
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

It's possible to rename method parameter to already used identifier. 

Steps to reproduce:
1) have a method:
public void metoda(Object param1, Object ... param2) {
}

2) place caret on param1 
3) call Refactoring | Rename
4) rename param1 to param2
Comment 1 Jan Becicka 2006-11-22 13:39:42 UTC

*** This issue has been marked as a duplicate of 76741 ***
Comment 2 Jiri Prox 2006-12-01 16:46:38 UTC
I'm not sure if this is duplicate of issue 76741. This issue is about not
performing check when renaming methods parameter. The other one concerns
problems with renaming local variables
Comment 3 Jiri Prox 2007-06-04 10:12:50 UTC
v.