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 202675

Summary: "Rename" refactoring doesn't update imports
Product: java Reporter: aldobrucale <aldobrucale>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: VERIFIED FIXED    
Severity: normal CC: rudyment
Priority: P2 Keywords: REGRESSION
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description aldobrucale 2011-09-26 14:03:08 UTC
[ BUILD # : 201109222201 ]
[ JDK VERSION : 1.7 ]

In a Java se project create class A in package a and class B in package c; add
a reference to B in A (es. private B b) and rename B to C. The line "import
b.B;" in A.java is not updated to "import b.C"
Comment 1 Jan Becicka 2011-09-29 15:03:51 UTC
reproducible
Comment 2 Jan Becicka 2011-09-29 15:25:46 UTC
caused by http://hg.netbeans.org/jet-main/rev/0ab1dac190a5
Comment 3 Jan Becicka 2011-09-29 15:31:11 UTC
Changeset: 018e0dcf5747
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2011-09-29 17:26
Message:   
Issue #202675 - "Rename" refactoring doesn't update imports
Comment 4 Quality Engineering 2011-10-01 14:04:36 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/018e0dcf5747
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #202675 - "Rename" refactoring doesn't update imports
Comment 5 Jiri Prox 2011-10-07 06:15:59 UTC
*** Bug 203274 has been marked as a duplicate of this bug. ***
Comment 6 ttokoly 2011-12-12 15:49:24 UTC
Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 3.0.0-14-generic running on i386; UTF-8; en_US (nb)

Works for me -> verified.