United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6616825 : JMX query returns no value in 1.0 compatibility mode - deserialization bug in readObject()

Details
Type:
Bug
Submit Date:
2007-10-15
Status:
Resolved
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2007-12-07
Component:
core-svc
OS:
solaris_9,generic
Sub-Component:
javax.management
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u15,6u10
Fixed Versions:
5.0u15 (b01)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

Description
The ObjectName readObject() method (deserialization) is wrong
when -Djmx.serial.form=1.0 is used. There is a test case in the attachment which shows the bug.

                                    

Comments
SUGGESTED FIX

See attached jdk5-ObjectName.java.patch (for javax/management/ObjectName.java)
See attached jdk5-SerialCompatTest.java.patch (for additional serial compatibility
    test case).

See also:
http://amos.france///jmgt/master/webrev/jmx/tiger/6616825_webrev/index.html

for a description of the suggested fix [note: Frames diff may not work]

*** (#1 of 1): [ UNSAVED ] ###@###.###
                                     
2007-10-15
EVALUATION

The problem is in ObjectName.readObject() which doesn't take into account the
value of the "propertyPattern" field.
                                     
2007-10-15



Hardware and Software, Engineered to Work Together