The RMIConnector class defines a WeakHashMap that keeps an MBeanServerConnection per delegation subject. The problem is that the MBeanServerConnection internally holds a reference to the delegation subject, i.e. the WeakHashMap key, thus preventing a given entry to be removed unless both the delegation subject and MBeanServerConnection instances get nulled.
|