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 218785

Summary: Accessing file system in EDT: HintAction.updateEnabled called for c++ files
Product: java Reporter: Egor Ushakov <gorrus>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 218138    
Attachments: stacktrace

Description Egor Ushakov 2012-09-21 14:32:57 UTC
If java enabled HintAction.updateEnabled is called for every c++ file selection change and goes to file system in EDT, which could lead to UI freeze. See attached stack trace.
Comment 1 Egor Ushakov 2012-09-21 14:33:12 UTC
Created attachment 124724 [details]
stacktrace
Comment 2 Quality Engineering 2012-10-15 02:01:16 UTC
Integrated into 'main-golden', will be available in build *201210150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/244f2efae6e6
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #218785: trying to prefer editor APIs over the platform ones again to prevent call to Lookup.lookup(EditorCookie.class), which causes file access in some cases.