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.
Access to previous field should probably be synchronized: @Override public void addHooks(HookRegistry hr) { hookRegistry = hr; hr.addClassLoadingHook(this); hr.addBundleFileFactoryHook(this); hr.addAdaptorHook(this); if (configurators == null) { configurators = Lookup.getDefault().lookupResult(HookConfigurator.class); configurators.addLookupListener(this); } resultChanged(null); } @Override public void resultChanged(LookupEvent ev) { Collection<? extends HookConfigurator> now = configurators.allInstances(); Set<HookConfigurator> added = new HashSet<HookConfigurator>(now); added.removeAll(previous); for (HookConfigurator hc : added) { hc.addHooks(hookRegistry); } previous = now; }
ergonomics#76c92828d69f
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/76c92828d69f User: Jaroslav Tulach <jtulach@netbeans.org> Log: #201538: Some hook configurators might have been initialized multiple times. Adding proper synchronization of all static variables.
This report is sign of deeper problems as indicated by bug 201544.