You can use serialver to inspect the current value of the 
'private static final long serialVersionUID'.  You do not need to have this 
set unless you have modified a class and wish to remain serial compatiblity 
with an older version.  For example if you change a method name, but the 
serial contents are the same you may wish to provide an explicit 
serialVersionUID to retain backwards compatiblity, else a new 
serialVersionUID will be created.

If you want the exact details on how this long is created, then I am not 
sure.  I think it is done by a secure hash of the public interface (or 
public methods), but that is just a guess.

This probably provides more information:

http://java.sun.com/j2se/1.4/docs/guide/serializatiohttp://java.sun.com/j2se/1.4/docs/guide/serialization/spec/class.doc6.html#4100n/spec/class.doc6.html#4100

 * * *

If this completly not what you were looking for then please ignore =)  

--jason


On Mon, 19 Nov 2001, Bill Burke wrote:

> I only read about this, but look at the Proxies.  serialver outputs the
> serialVersionUID then you cut and paste it into a static variable in the
> class file?  I'm not sure.  Sorry...
> 
> Bill
> 
> > -----Original Message-----
> > From: marc fleury [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 19, 2001 2:17 PM
> > To: Bill Burke; Jboss-Development@Lists. Sourceforge. Net
> > Subject: RE: [JBoss-dev] Ignorance
> >
> >
> > and I don't need to write anything in the source then do I ?
> >
> > marcf
> >
> > |-----Original Message-----
> > |From: [EMAIL PROTECTED]
> > |[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
> > |Burke
> > |Sent: Monday, November 19, 2001 1:43 PM
> > |To: marc fleury; Jboss-Development@Lists. Sourceforge. Net
> > |Subject: RE: [JBoss-dev] Ignorance
> > |
> > |
> > |"serialver" executable?
> > |
> > |> -----Original Message-----
> > |> From: [EMAIL PROTECTED]
> > |> [mailto:[EMAIL PROTECTED]]On Behalf Of marc
> > |> fleury
> > |> Sent: Monday, November 19, 2001 12:30 PM
> > |> To: Jboss-Development@Lists. Sourceforge. Net
> > |> Subject: [JBoss-dev] Ignorance
> > |>
> > |>
> > |> So how does the serialVersionUID get generated in classes that are
> > |> Externalizable?
> > |>
> > |> I am a bit fuzzy, in fact I plain would like the beginner version
> > |> on that...
> > |>
> > |> thanks, he he
> > |>
> > |> :)
> > |>
> > |>
> > |> "Earth is burning, up!"
> > |> -- Orbital ca 1992 --
> > |>
> > |>
> > |> xxxxxxxxxxxxxxxx
> > |> Marc Fleury
> > |> President
> > |> JBoss Group, LLC
> > |> xxxxxxxxxxxxxxxx
> > |>
> > |>
> > |> _______________________________________________
> > |> Jboss-development mailing list
> > |> [EMAIL PROTECTED]
> > |> https://lists.sourceforge.net/lists/listinfo/jboss-development
> > |>
> > |
> > |
> > |_______________________________________________
> > |Jboss-development mailing list
> > |[EMAIL PROTECTED]
> > |https://lists.sourceforge.net/lists/listinfo/jboss-development
> >
> 
> 
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to