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 106082 - Assertion error from FindInFilesAction$LookupSensitive.isEnabled
Summary: Assertion error from FindInFilesAction$LookupSensitive.isEnabled
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on: 121006
Blocks:
  Show dependency tree
 
Reported: 2007-06-08 03:01 UTC by Jesse Glick
Modified: 2007-11-02 17:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (2.69 KB, text/plain)
2007-06-08 03:02 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-06-08 03:01:29 UTC
After closing some projects in 070606.
Comment 1 Jesse Glick 2007-06-08 03:02:00 UTC
Created attachment 43427 [details]
Stack trace
Comment 2 Jesse Glick 2007-06-08 03:04:44 UTC
Thrown again when closing a different project. Interrupts project closing and
causes the project node to remain in the Projects tab.
Comment 3 Jesse Glick 2007-06-08 03:10:20 UTC
Looks like fPC(PROP_ENABLED) in FIFA.LS.stateChanged should be wrapped in
Mutex.EVENT.readAccess?

BTW the comment "auto-boxing" is incorrect, since there is a
(String,boolean,boolean) overload.
Comment 4 Marian Petras 2007-06-10 18:58:50 UTC
It should be wrapped, probably.

Btw, it is interesting that I haven't encountered this assertion failure.
Comment 5 Jesse Glick 2007-06-10 19:04:50 UTC
I think I encountered it upon first using the redesigned Find dialog.
Comment 6 Marian Petras 2007-06-10 19:24:54 UTC
Yes, I expect so. Class "FindInFilesAction" did not exist before the redesign.
But before I committed the rewritten enable/disable mechanism to CVS, I tried
various scenarios like opening/closing projects, selecting/unselecting nodes,
marking a project as a main project, uninstalling support for projects, etc. and
various combinations of them. Still I have never seen the assertion failure.

Note: I checked the current mechanism of enabling/disabling find actions to CVS
several days after I had checked the redesigned Find dialogue.
Comment 7 Marian Petras 2007-06-10 19:29:41 UTC
Fixed in the trunk

Modified file:
   utilities/src/org/netbeans/modules/search/FindInFilesAction.java   (1.5)

Diff:
http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/FindInFilesAction.java?r1=1.4&r2=1.5&diff_format=u