ObjectInputStream.GetField getField = ois.readFields();
try
{
String name = (String) getField.get("canonicalName", null);
if (name == null)
throw new StreamCorruptedException("No canonical name for jmx1.0?");
init(name);
}
catch (MalformedObjectNameException e)
{
throw new StreamCorruptedException(e.toString());
}
break;
default:
try
{
init((String) ois.readObject());
}
catch (MalformedObjectNameException e)
{
throw new StreamCorruptedException(e.toString());
}
}
}