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 - Accessing file system in EDT: HintAction.updateEnabled called for c++ files
Summary: Accessing file system in EDT: HintAction.updateEnabled called for c++ files
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 218138
  Show dependency tree
 
Reported: 2012-09-21 14:32 UTC by Egor Ushakov
Modified: 2012-10-15 04:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (7.67 KB, text/plain)
2012-09-21 14:33 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
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.