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 181818 - An EmbeddingIndexer receives a cached (and stale) parsing result after invoking IndexingManager.getDefault().refreshIndex()
Summary: An EmbeddingIndexer receives a cached (and stale) parsing result after invoki...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 180825
  Show dependency tree
 
Reported: 2010-03-11 02:51 UTC by J Bachorik
Modified: 2010-04-11 04:22 UTC (History)
1 user (show)

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 J Bachorik 2010-03-11 02:51:58 UTC
In JavaFX refactoring, due to type inference, when renaming a class I need to refresh indexes of source files which haven't been physically modified by the refactoring but contain hidden references to the renamed class (the class name is not used in the referenced file anywhere).

To achieve this I manually force re-indexing of all files related to the one containing the renamed class by calling "IndexingManager.getDefault().refreshIndex()" method. The indexing promptly starts and ignores the timestamps but it seems that for files with no modification the cached parser result (eg. containing the old type name) is used and it results in corrupted indices (the index says that the referenced file contains references to the old type name instead of the new type name).

Setting the priority to P2 as it blocks P2 in JavaFX refactoring (https://netbeans.org/bugzilla/show_bug.cgi?id=180825)
Comment 1 Vitezslav Stejskal 2010-03-12 08:47:37 UTC
Ok, will have a look.
Comment 2 Tomas Zezula 2010-04-09 20:19:39 UTC
Fixed in jet-main 9606a014f7c5
Comment 3 Quality Engineering 2010-04-11 04:22:02 UTC
Integrated into 'main-golden', will be available in build *201004110201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9606a014f7c5
User: Tomas Zezula <tzezula@netbeans.org>
Log: #181818:An EmbeddingIndexer receives a cached (and stale) parsing result after invoking IndexingManager.getDefault().refreshIndex()