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 175048

Summary: Incorrect error badges repeatedly trigger rescan
Product: java Reporter: Jesse Glick <jglick>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker CC: nleck
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 121950    

Description Jesse Glick 2009-10-20 20:39:46 UTC
After opening and scanning a large freeform project, error badges appeared on around 70 of the classes in the source
tree. Upon opening them in the editor, where they get a green box, java.source.tasklist.IncorrectErrorBadges announces
it will rescan the source root, taking another couple minutes. But after the rescan the same error badges appear, and
switching to those editor tabs again triggers a rescan.
Comment 1 Jan Lahoda 2009-10-21 17:50:29 UTC
Thanks for the report. I can see two bugs/problems w.r.t. this project:
1. the rebuilding of the project: caused by a bug in code that handles classes living elsewhere. I have a fix and will
integrate it on my next push.
2. Java errors in tasklist and excludes on classpath do not work - this is because the project does not specify any
source groups of type "java". When I added a new source-folder of type "java" (with correct exclude pattern), both
tasklist and classpath excludes started to work correctly.

With the above two changes and using JDK1.5, the project was indexed without (Java) compilation errors.
Comment 2 Jan Lahoda 2009-10-22 13:28:21 UTC
http://hg.netbeans.org/jet-main/rev/725ade7edd4e
Comment 3 Quality Engineering 2009-10-23 10:05:12 UTC
Integrated into 'main-golden', will be available in build *200910230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/725ade7edd4e
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #175048: prevent addition of a class living elsewhere to the parent package (for import parent.package.*).