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.
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.
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.
http://hg.netbeans.org/jet-main/rev/725ade7edd4e
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.*).