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.
Summary: | [71cat] Closing project causes its re-scanning. | ||
---|---|---|---|
Product: | java | Reporter: | Petr Cyhelsky <cyhelsky> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dstrupl, jglick, muellermi |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 184362 |
Attachments: | stacktrace |
Description
Petr Cyhelsky
2012-01-17 08:24:10 UTC
Created attachment 114954 [details]
stacktrace
When closing project the method org.netbeans.modules.project.ui.ProjectUtilities.storeProjectOpenFiles(ProjectUtilities.java:496) triggers saving of project files and org.netbeans.modules.java.api.common.SourceRoots$ProjectMetadataListener.configurationXmlChanged(SourceRoots.java:561) listens and through resetCaches triggers change in project roots. Perhaps resetCaches could check whether there is an actual change in sourceRootURLs and/or sourceRootProperties before refiring an event. What is the actual query triggering indexer rescan - Sources, SourceForBinaryQuery.Result, ClassPathImplementation (for SOURCE), or some combination? The SR fired as the event come from projectXMLChanged. To verify that the sourceRootProperties has changed the resetCaches will need to parse the projectXML, this may be problematic if lots of event comes. When only property changes the SR fire only if changed property is a source root property. But the change come form private.xml, ignoring the event when ev.getPath() == APH.PRIVATE_XML_PATH may be enough. I will try. fixed jet-main b9fc9222ea3c Integrated into 'main-golden', will be available in build *201201250600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b9fc9222ea3c User: Tomas Zezula <tzezula@netbeans.org> Log: #207377:[71cat] Closing project causes its re-scanning. |