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 173802 - Usages of inner class from test unnoticed
Summary: Usages of inner class from test unnoticed
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2009-10-05 23:29 UTC by Jesse Glick
Modified: 2009-10-14 15:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-10-05 23:29:10 UTC
091005. Recently deleted var/cache/index so not a problem of old indices. "Dependencies in Java Tasklist" = "Enabled".

I was working on apisupport.project and looking at SuiteCustomizerLibraries.Enabled, which was package-private. Find
Usages claimed all usages were inside SuiteCustomizerLibraries.java, so I made it private. No error badges appeared in
the Projects tab so it looked good. Later it turned out SuiteCustomizerLibrariesTest.java used this class; when I
navigate to and open this class, suddenly error badges appear on it.
Comment 1 Jesse Glick 2009-10-05 23:33:20 UTC
Easily reproducible; try adding and removing private modifier, even with both files open in the editor. The error badge
on the test does not update until you switch to the test source, and warnings from IncorrectErrorBadges are shown in the
log:

WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected,
file=/space/src/nb/core-main/apisupport.project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteCustomizerLibrariesTest.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute
root=/space/src/nb/core-main/apisupport.project/test/unit/src, files in error=[].
WARNING [org.netbeans.core.TimableEventQueue]: Still previous controller
org.netbeans.modules.profiler.actions.SelfSamplerAction$Controller@f054e2
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected,
file=/space/src/nb/core-main/apisupport.project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteCustomizerLibrariesTest.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute
root=/space/src/nb/core-main/apisupport.project/test/unit/src, files in
error=[file:/space/src/nb/core-main/apisupport.project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteCustomizerLibrariesTest.java].
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected,
file=/space/src/nb/core-main/apisupport.project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteCustomizerLibrariesTest.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute
root=/space/src/nb/core-main/apisupport.project/test/unit/src, files in error=[].
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected,
file=/space/src/nb/core-main/apisupport.project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteCustomizerLibrariesTest.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute
root=/space/src/nb/core-main/apisupport.project/test/unit/src, files in
error=[file:/space/src/nb/core-main/apisupport.project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteCustomizerLibrariesTest.java].
Comment 2 Jan Lahoda 2009-10-14 15:03:36 UTC
Are you able to reproduce on a newer build? I tried, but did not really succeed. Quite likely duplicate of issue #173876.

Thanks.
Comment 3 Jesse Glick 2009-10-14 15:35:56 UTC
Can no longer reproduce in a dev build.