On Thursday, 7 August 2014, Jesse Glick <jgl...@cloudbees.com> wrote:

> On Thu, Aug 7, 2014 at 10:35 AM, Stephen Connolly
> <stephen.alan.conno...@gmail.com <javascript:;>> wrote:
> > Sounds like a regression then
>
> I think not:
>
> http://xstream.codehaus.org/faq.html#Serialization_newer_class_versions
>
> > If a field is removed from the class, deserializing an old version that
> contains the field will cause an exception.
>
> (Jenkins just marks this “old data”.)
>
> > Leaving the field in place but declaring it as transient will avoid the
> exception, but XStream will not try to deserialize it.
>
> Which answers this question.


Well last time I did a migration in the cloudbees-deployer-plugin and other
plugins too the transient fields were deserialised and non-null allowing me
to migrate the values in the readResolve method...


>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com <javascript:;>.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Sent from my phone

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to