I don't think you can read an old serialized data in any way
if you add a new field to that class. What do you
mean by "inject the changes into the obsolete class"?
Do you want to convert a serialized data in the database
to be compatible with a new version of the class?
Yes, i was hoping to get the byte, change the SerialUID value, add the new fields and methods, serialize back update the row in the database. Perhaps javaassist is not the way to go here ?
Unfortunately, Javassist is not a toolkit for editing
serialized data. It might be a good idea that Javassist
supports that editing but currently Javassist does not.