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.
Sorry.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893992#3893992
Reply to the post :
htt
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 ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893914#3893914
Reply
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?
View the original post :