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 137568 - Bad error badge autocorrection works only once
Summary: Bad error badge autocorrection works only once
Status: VERIFIED FIXED
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: 104665
  Show dependency tree
 
Reported: 2008-06-18 14:33 UTC by Jesse Glick
Modified: 2008-06-20 16:16 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 2008-06-18 14:33:44 UTC
080618 but noticed for a while now. I know there is now some kind of special logic which checks for the case that a file
is marked with an error badge yet has a clean parse, in which case the badges for the whole tree (project?) are
recalculated. This does seem to work - but just once. If I have two nb.org NBM projects open (e.g. apisupport.project
and projectui), both of them with spurious error markings on the Unit Test Packages nodes (for some reason this seems
quite common), and I open a random test case from the first project and then close it, the badges disappear from that
project immediately. But if I open a test case from the second project and close it, the badge disappears only from that
node. It seems the autocorrection does not continue to work.
Comment 1 Jesse Glick 2008-06-18 14:42:10 UTC
Perhaps IncorrectErrorBadges.invocationCount in combination with Phase.UP_TO_DATE is the problem?
Comment 2 Jan Lahoda 2008-06-20 14:06:57 UTC
More likely caused by compiler warnings in the second file:
http://hg.netbeans.org/main?cmd=changeset;node=ba0522bf718a
Comment 3 Quality Engineering 2008-06-20 15:52:54 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #271 build
Changeset: http://hg.netbeans.org/main/rev/ba0522bf718a
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #137568: ignore warnings when fixing incorrect error badges.
Comment 4 Jesse Glick 2008-06-20 16:16:16 UTC
Seems to be working better now, thanks!