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 118784 - [60cat] Rename java file form deferent project will show errors badge without a errors
Summary: [60cat] Rename java file form deferent project will show errors badge withou...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker with 2 votes (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 119129 119472 (view as bug list)
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2007-10-13 06:06 UTC by _ theanuradha
Modified: 2007-11-14 23:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Projects (19.24 KB, application/octet-stream)
2007-10-13 06:07 UTC, _ theanuradha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ theanuradha 2007-10-13 06:06:54 UTC
[ 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
Comment 1 _ theanuradha 2007-10-13 06:07:55 UTC
Created attachment 50883 [details]
Projects
Comment 2 Jiri Prox 2007-10-15 08:36:45 UTC
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)
Comment 3 Lukas Hasik 2007-10-16 21:47:05 UTC
It is annoying when you cannot believe to tha badges -> increasing priority
Comment 4 Jan Becicka 2007-10-19 09:37:19 UTC
*** Issue 119129 has been marked as a duplicate of this issue. ***
Comment 5 Jan Becicka 2007-10-19 13:08:08 UTC
*** Issue 119472 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Kovalsky 2007-10-31 15:40:19 UTC
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
Comment 7 Jan Lahoda 2007-10-31 19:23:42 UTC
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
Comment 8 Jan Lahoda 2007-10-31 20:36:14 UTC
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.