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 120765 - [60cat] Incorect error badges (yet another one! )
Summary: [60cat] Incorect error badges (yet another one! )
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2007-11-01 09:41 UTC by _ theanuradha
Modified: 2007-11-14 23:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project (10.03 KB, application/octet-stream)
2007-11-01 09:45 UTC, _ theanuradha
Details
Binary patch. (14.11 KB, application/octet-stream)
2007-11-01 10:08 UTC, Jan Lahoda
Details
Binary patch II. (94.05 KB, application/octet-stream)
2007-11-01 10:21 UTC, Jan Lahoda
Details
output (37.68 KB, text/plain)
2007-11-01 10:56 UTC, _ theanuradha
Details
After step 5 See step 5 details (37.50 KB, application/octet-stream)
2007-11-01 11:04 UTC, _ theanuradha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ theanuradha 2007-11-01 09:41:36 UTC
[ 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
Comment 1 _ theanuradha 2007-11-01 09:42:52 UTC
Note : please use view java package as tree option
Comment 2 _ theanuradha 2007-11-01 09:45:04 UTC
Created attachment 52223 [details]
Project
Comment 3 _ theanuradha 2007-11-01 09:55:19 UTC
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'
Comment 4 Jan Lahoda 2007-11-01 10:05:49 UTC
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.
Comment 5 _ theanuradha 2007-11-01 10:06:22 UTC
correction: this happens view java package as both tree and List
Comment 6 Jan Lahoda 2007-11-01 10:08:42 UTC
Created attachment 52225 [details]
Binary patch.
Comment 7 _ theanuradha 2007-11-01 10:16:05 UTC
I try apply patch but don't help
Comment 8 Jan Lahoda 2007-11-01 10:21:50 UTC
Created attachment 52226 [details]
Binary patch II.
Comment 9 Jan Lahoda 2007-11-01 10:26:19 UTC
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.
Comment 10 _ theanuradha 2007-11-01 10:33:59 UTC
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
                  
Comment 11 _ theanuradha 2007-11-01 10:36:43 UTC
sorry I miss you last comment 
I do what you ask
Comment 12 Jan Lahoda 2007-11-01 10:44:42 UTC
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.
Comment 13 _ theanuradha 2007-11-01 10:51:15 UTC
I didn't get any output massages other than normal ones to  IDE log  
Comment 14 _ theanuradha 2007-11-01 10:54:34 UTC
Its ok I'll try again 

so it should be like  ${netbeans_install}/java1/modules/patches/org-netbeans-modules-java-source/120765.jar
Right?
Comment 15 Jan Lahoda 2007-11-01 10:55:37 UTC
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
Comment 16 _ theanuradha 2007-11-01 10:56:20 UTC
Created attachment 52233 [details]
output
Comment 17 _ theanuradha 2007-11-01 11:04:19 UTC
Created attachment 52234 [details]
After step 5 See step 5 details
Comment 18 Jan Lahoda 2007-11-01 11:13:13 UTC
Thanks. I am able to reproduce now.
Comment 19 Jan Lahoda 2007-11-01 11:33:03 UTC
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
Comment 20 _ theanuradha 2007-11-01 12:51:08 UTC
VERIFIED
Comment 21 Jiri Kovalsky 2007-11-01 14:08:40 UTC
Wow, this is simply cool! Thank you guys :-)