I've just noticed something weird with the "Check for Updates" entry in the
- In the productive Jitsi it's no longer present all
- Launched from Eclipse (without debugger): The menu is there, but with the
Java Look&Feel (motif?)
- Launched from Eclipse (with debugger attached): Sometimes normal behavior.
The different behavior based on a debugger attached leads me to believe that
this is a timing issue. What I find a bit weird is how the plugins are
registered... The menu hosts a PluginContainer, but only creates an instance
of it. The constructor apparently searches for already registered plugins,
and then delegates the task to listen for new plugins to the UIService
(why?). The UIService keeps the references to the PluginListeners as
WeakReferences, so the PluginContainer is probably garbage-collected as the
JIT-compiler is probably intelligent enough to throw the unused reference in
the HelpMenu away (leaving the PluginContainer without root and thus
Perhaps I'm also completely off-track and it's just something with all the
SwingUtilities.invokeLater stuff that changed about a week ago...