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: | Favorites created after deleting will be displayed as "Broken Link" | ||
---|---|---|---|
Product: | platform | Reporter: | ebaumann |
Component: | Data Systems | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
ebaumann
2014-10-09 06:49:34 UTC
Not sure if there is really anything we can do. As a workaround you can add the file to favorites once more and then remove this second link -> as a side effect all nodes are refreshed again. I think the reason for this is in data systems: When the file is deleted, DataObjectPool.fileDeleted is called and it notifies the DOs listeners (the DataShadow/link instance) that the file was deleted. However when the file is recreated DataObjectPool.fileDataCreated does not notify anyone because no DOs are returned from a call of getTargets (maybe because the original DOs was GCed or because the instance of the FO is a different from the original file - nothing is returned in getTargets - DataObjectPool.POOL.map.get(fo) There is also another problem. The mechanism that is already present in NetBeans for re-creation of broken links works only for default (config) filesystem. Filesystem with project files are excluded, because the OS sometimes asked people to insert floppy disk or CD-ROM (bug 43315). This problem seems resolved now (probably due to changes in OS and masterfs module), so we can check all filesystems now. The problem Ondrej described is still valid, but its impact seems smaller and re-activation of broken links in Favorites view works fine after the change. Fixed in http://hg.netbeans.org/core-main/rev/8e4931d03bef Please verify. To restore the original behavior, please start NetBeans with this parameter: -J-Dorg.openide.loaders.BrokenDataShadow.CHECK_ONLY_DEFAULT=true Thank you for reporting. Integrated into 'main-silver', will be available in build *201508280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8e4931d03bef User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #247812: Favorites created after deleting will be displayed as "Broken Link" |