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 ] Incorrect error badges (yet another one! ) Steps: 1: Open attached project 2. Open NetCatInterfaseImpl.java file 3. go to line 13 and change 'public void testBreakPoint()' as 'public void test BreakPoint()' 4.Save file will show error badges on NetCatInterfaseImpl.java and Main.java but not package and src nodes 5.close project and reopen will show error badges on package and src nodes 6.now again goto line 13 and change 'public void test BreakPoint()' as 'public void testBreakPoint()' 7.It will remove error badges on NetCatInterfaseImpl.java and Main.java but not package and src nodes Using P2 as priority since error badges problems is subject to very hot discussion [1] at NetCAT. [1] http://www.nabble.com/-news--NetCAT-Status-Report---6.-tf4721330.html
Note : please use view java package as tree option
Created attachment 52223 [details] Project
correction : '5.close project and reopen will show error badges on package and src nodes' should be '5.Close IDE and Open will show error badges on package and src nodes'
From the report, it seems that the in-memory cache is broken. I tried to make it more robust - could you please try the attached patch? Place it into ${netbeans_install}/java1/modules/patches/org-netbeans-modules-java-source (${netbeans_install}/java1/modules should already exist, patches/org-netbeans-modules.java-source need to be created) and restart the IDE, and reproduce the problem. Thanks.
correction: this happens view java package as both tree and List
Created attachment 52225 [details] Binary patch.
I try apply patch but don't help
Created attachment 52226 [details] Binary patch II.
Ok, thanks. I have attached a new patch - this one does not try to fix the problem, but rather adds a few debug output that might help to localize the problem. Could you please try to reproduce with this patch (the instructions to apply the patch are the same as for the previous patch). The IDE should print lines like: ErrorAnnotator: invalidating: [file:/tmp/Debug/src/org/netcat/NetCatInterfaseImpl.java, file:/tmp/Debug/src/, file:/tmp/Debug/src/org/, file:/tmp/Debug/src/org/netcat/, file:/tmp/Debug/] Could you please reproduce the problem and attach the output? Thanks.
Sorry I have apply patch II but don't help.But src_ |-org |-netcat(this level also show error badge along with NetCatInterfaseImpl.java and Main.java ) |-Main.java |-NetCatInterfase.java |-NetCatInterfaseImpl.java
sorry I miss you last comment I do what you ask
Oops, in my first comment, the directory: ${netbeans_install}/java1/modules/patches/org-netbeans-modules-java-source is correct, but the second occurrence: patches/org-netbeans-modules.java-source is incorrect - it should of course be: patches/org-netbeans-modules-java-source Sorry.
I didn't get any output massages other than normal ones to IDE log
Its ok I'll try again so it should be like ${netbeans_install}/java1/modules/patches/org-netbeans-modules-java-source/120765.jar Right?
Please double check that you have the patch in directory: patches/org-netbeans-modules-java-source not: patches/org-netbeans-modules.java-source as I accidentally wrote in the first comment (sorry again for this mistake). The IDE should print a note during startup that it uses the patch, like: INFO [org.netbeans.core.startup.NbEvents]: Module patch or custom extension: <nb-install-dir>/java1/modules/patches/org-netbeans-modules-java-source/120765.jar
Created attachment 52233 [details] output
Created attachment 52234 [details] After step 5 See step 5 details
Thanks. I am able to reproduce now.
Should be fixed now, please verify. Thanks for reproducible case: Checking in TaskCache.java; /cvs/java/source/src/org/netbeans/modules/java/source/tasklist/TaskCache.java,v <-- TaskCache.java new revision: 1.12; previous revision: 1.11 done
VERIFIED
Wow, this is simply cool! Thank you guys :-)