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.
When working on http://wiki.netbeans.org/FitnessForever I found out that often enabling a set of modules (like web cluster) and then creating a project, can lead to project reporting broken references. I've tracked this down to a race condition between project.library's LibraryStorage refresh and LibraryTypeRegistry refresh. If the order is refresh LibraryStorage first and then refresh LibraryTypeRegistry, things get broken, the system is not aware of all registered libraries. I guess one possible fix is to listen on LibraryTypeRegistry and refresh the storage in case the type registry changes its content.
Created attachment 74353 [details] Fix and test
Seems fine to me, feel free to integrate.
core-main#bf7e064d5d94
Integrated into 'main-golden', will be available in build *200812020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/bf7e064d5d94 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #154280: Libraries are not refreshed when provider is installed/uninstalled. Reviewed by tzezula@netbeans.org
Integrated into 'main-golden', will be available in build *200812030201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/efc54c351914 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #154280: Jesse correctly pointed out that I have forgotten to commit the new test file. Thanks.
no regression caused by this was found, marking verified.
The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/bd5803e237f4
fixes problems with libraries deactivation/activation for 6.5 and no regression found. verified in 6.5 patch 2.