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 125105 - [Rename] Imports are not updated correctly after rename is performed and undoed
Summary: [Rename] Imports are not updated correctly after rename is performed and undoed
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 124137
  Show dependency tree
 
Reported: 2008-01-11 12:16 UTC by Jiri Prox
Modified: 2008-02-13 12:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Coupling errors and NPEs from javac (5.72 KB, text/plain)
2008-01-24 15:16 UTC, Jan Becicka
Details
D:\sources\trunk\testuserdir\var\log\XYDrawableAnnotation.dump (9.39 KB, text/plain)
2008-01-24 15:18 UTC, Jan Becicka
Details
D:\sources\trunk\testuserdir\var\log\AbstractXYAnnotation.sig.dump (10.37 KB, text/plain)
2008-01-24 15:19 UTC, Jan Becicka
Details
D:\Temp\jFreeChart\source\org\jfree\chart\annotations\AbstractXYAnnotation.java (6.47 KB, text/plain)
2008-01-24 15:21 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2008-01-11 12:16:44 UTC
Product Version: NetBeans IDE Dev (Build 20080109023911)
Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b06
System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb)

Import statements are not updated correctly if package rename refactoring is called after undo of another rename.

Steps to reproduce:
1) open bigger projects (tested with projectized jFreeChart)
2) rename package: org.jfree.chart.annotations -> org.jfree.chart.annotations.renamed
3) undo
4) rename org.jfree.chart.axis -> org.jfree.chart.axis.renamed
-> some classes from package org.jfree.chart.annotations contains import of class from package org.jfree.chart.axis
which is invalid

if this issue doesn't occur after step 4), undo the refactoring and continue in renaming packages
Comment 1 Jan Becicka 2008-01-15 21:38:02 UTC
One more important question. Is this regression since 6.0?
Comment 2 Jiri Prox 2008-01-16 10:24:34 UTC
No, I can reproduce it in 6.0 as well
Comment 3 Jan Becicka 2008-01-24 15:15:05 UTC
Reassigning to java/source for evaluation
Comment 4 Jan Becicka 2008-01-24 15:16:39 UTC
Created attachment 55506 [details]
Coupling errors and NPEs from javac
Comment 5 Jan Becicka 2008-01-24 15:18:03 UTC
Created attachment 55507 [details]
D:\sources\trunk\testuserdir\var\log\XYDrawableAnnotation.dump
Comment 6 Jan Becicka 2008-01-24 15:19:28 UTC
Created attachment 55508 [details]
D:\sources\trunk\testuserdir\var\log\AbstractXYAnnotation.sig.dump
Comment 7 Jan Becicka 2008-01-24 15:21:12 UTC
Created attachment 55509 [details]
D:\Temp\jFreeChart\source\org\jfree\chart\annotations\AbstractXYAnnotation.java
Comment 8 Jan Lahoda 2008-02-12 13:46:27 UTC
Hopefully fixed:
http://hg.netbeans.org/main/rev/21561d0bd778
Comment 9 Jiri Prox 2008-02-13 12:33:03 UTC
seems to be ok, verified