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.
http://openide.netbeans.org/issues/show_bug.cgi?id=17246 showed that: TopManager.getDefault().systemClassLoader() is more deadlock ressistant than: Lookup.getDefault().lookup(newLookup.Templte(ClassLoader.class)).allInstances() The second approach is preffered so it should be improved as it should be able to replace the first one in all use cases.
TopManager.getDefault ().systemClassLoader () is the same as Lookup.getDefault ().lookup (ClassLoader.class) Getting result and calling allInstances is more dangerous. Ok?
It is the same, at least by current implementation.