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 - "Rename" refactoring doesn't update imports
Summary: "Rename" refactoring doesn't update imports
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: REGRESSION
: 203274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-26 14:03 UTC by aldobrucale
Modified: 2011-12-12 15:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.