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.
[ JDK VERSION : 1.6.0_02 ] Rename java file form deferent project will show errors badge without a errors Steps 1:Open attached Projects call BaseProject and SubProject 2 : open Test.java class in SubProject 3 : hit CTRL+R on "private TestCat testCat;" 4 : rename to Testcat-->NetCat editor and Project view show errors badge workaround : you have to click deferent Editor tab and select Test.java tab will remove errors
Created attachment 50883 [details] Projects
Look like the renamed file in different project is not reparsed after rename Product Version: NetBeans IDE Dev (Build 20071011102614) Java: 1.6.0_03-ea; Java HotSpot(TM) Client VM 1.6.0_03-ea-b01 System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb)
It is annoying when you cannot believe to tha badges -> increasing priority
*** Issue 119129 has been marked as a duplicate of this issue. ***
*** Issue 119472 has been marked as a duplicate of this issue. ***
Upgarding priority since this problem is subject to very hot discussion [1] at NetCAT. [1] http://www.nabble.com/-news--NetCAT-Status-Report---6.-tf4721330.html
I have fixed two problems: 1. when refactoring spans across several source roots, the caches might be incorrect. This should work correctly now. 2. error underlines remaining after refactoring in the currently edited file (which is what this issue spoke about, AFAIK). The underlines will appear temporarily, but should disappear automatically (ie. without user intervention) once the caches are updated. RCS file: /cvs/java/source/src/org/netbeans/modules/java/source/usages/AllRefactoringsPluginFactory.java,v done Checking in src/org/netbeans/modules/java/source/usages/AllRefactoringsPluginFactory.java; /cvs/java/source/src/org/netbeans/modules/java/source/usages/AllRefactoringsPluginFactory.java,v <-- AllRefactoringsPluginFactory.java initial revision: 1.1 done Checking in src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java; /cvs/java/source/src/org/netbeans/modules/java/source/usages/RepositoryUpdater.java,v <-- RepositoryUpdater.java new revision: 1.105; previous revision: 1.104 done Checking in nbproject/project.xml; /cvs/java/source/nbproject/project.xml,v <-- project.xml new revision: 1.37; previous revision: 1.36 done RCS file: /cvs/java/source/src/META-INF/services/org.netbeans.modules.refactoring.spi.RefactoringPluginFactory,v done Checking in src/META-INF/services/org.netbeans.modules.refactoring.spi.RefactoringPluginFactory; /cvs/java/source/src/META-INF/services/org.netbeans.modules.refactoring.spi.RefactoringPluginFactory,v <-- org.netbeans.modules.refactoring.spi.RefactoringPluginFactory initial revision: 1.1 done
BTW: please note that the fix will not heal broken caches - you will need to stop IDE, delete var/cache/index and start the IDE again.