JDK-6238076 : Serialized form of javax.management.remote.rmi.RMIConnector includes clientNotifID field
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-03-09
  • Updated: 2017-05-16
  • Resolved: 2005-07-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b45Fixed
Description
The class javax.management.remote.rmi.RMIConnector contains a field clientNotifID.  Since this class is Serializable, and since the field is not transient, the serialized form includes clientNotifID.  The purpose of this field is to track the notification sequence number in JMXConnectionNotifications from the RMIConnector (so it should really be called clientNotifSeqNo or the like).  An RMIConnector is typically only serialized if it is the value returned by RMIConnectorServer.toJMXConnector, in which case it will not have been connected and will have a sequence number of 0.  Even if an RMIConnector is serialized in other circumstances, there is little or no interest in continuing the notification sequence numbers when it is subsequently deserialized.
###@###.### 2005-03-09 09:54:47 GMT

Comments
SUGGESTED FIX Rename the clientNotifID field to clientNotifSeqNo and make it transient. ###@###.### 2005-06-24 09:40:31 GMT
24-06-2005

EVALUATION The fact that this field is not transient is clearly an oversight. It is hard to imagine that removing it from the serial form would impact any existing code. On the other hand, it does little harm as it is. ###@###.### 2005-03-09 09:54:47 GMT
09-03-2005