Re: about serialVersionUID in all components

2010-05-08 Thread Zilvinas Vilutis
The serialVersionUID is used in JVM to determine the class type if the signature is the same when unserializing. So if you don't have components with the same package + classname combination - then no worries. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Sat

Re: about serialVersionUID in all components

2010-05-08 Thread Martin Voigt
l > > what are the side effects of setting serialVersionUID  on all page classes > and components > private static final long serialVersionUID = 1L; > > i am developing an application which will be deployed on appengine > appengine handle sessions by storing them in the me

about serialVersionUID in all components

2010-05-08 Thread Joe Fawzy
Hi all what are the side effects of setting serialVersionUID on all page classes and components private static final long serialVersionUID = 1L; i am developing an application which will be deployed on appengine appengine handle sessions by storing them in the memcache and data store as there

Re: serialVersionUID

2009-04-22 Thread Daniele Gariboldi
Today we have Terracotta, OSGi, Google app engine and other cloud services. Reading this thread and http://www.javaworld.com/javaworld/javaqa/2003-06/02-qa-0627-mythser.html?page=3 Into the mist of serialization myths at: <> I think the decision to not set (and manage) serialVersionUID

Re: serialVersionUID

2009-04-13 Thread Johan Compagner
times it just works, And if you really think ok an older version of this class shouldnt be able de deserialize into this then you up with 1 johan On Mon, Apr 13, 2009 at 14:58, Eduardo Nunes wrote: > serialVersionUID is very important, especially if you deal with > serialized data saved

Re: serialVersionUID

2009-04-13 Thread Eduardo Nunes
serialVersionUID is very important, especially if you deal with serialized data saved to disk, db, javaspace or somewhere else. For example, if you use JavaSpaces, you put objects there and you can disconnect, update your application version, run it again, and your objects will be there. If you

Re: serialVersionUID

2009-04-13 Thread James Carman
On Sun, Apr 12, 2009 at 1:46 PM, Ben Tilford wrote: > I've always seen it done as public. Anyways I checked the javadoc and the > access modifier does not matter. IntelliJ IDEA generates them as private. - To unsubscribe, e-mail

Re: serialVersionUID

2009-04-12 Thread Brill Pappin
e javadoc and the access modifier does not matter. On Sun, Apr 12, 2009 at 1:56 AM, Eelco Hillenius wrote: The purpose of the *public* static final long serialVersionUID is for long Why do you stress *public*? private is the norm for serialVer

Re: serialVersionUID

2009-04-12 Thread Brill Pappin
Nice. I think thats actually more important than we've been giving it credit for in this thread! - Brill Pappin On 12-Apr-09, at 12:51 AM, Luther Baker wrote: I don't know much about it ... but would something like Terracotta use/require/leverage the serialVersionUID for som

Re: serialVersionUID

2009-04-12 Thread Ben Tilford
I've always seen it done as public. Anyways I checked the javadoc and the access modifier does not matter. On Sun, Apr 12, 2009 at 1:56 AM, Eelco Hillenius wrote: > > The purpose of the *public* static final long serialVersionUID is for > long > > Why do you stress *public*?

Re: serialVersionUID

2009-04-12 Thread John Krasnay
On Sat, Apr 11, 2009 at 11:51:47PM -0500, Luther Baker wrote: > > In fact, unless I am really abiding by serialVersionUID rules (changing it > explicitly - every time I make a relevant, corresponding change to the > containing class) - I'm not really gaining any functionality t

Re: serialVersionUID

2009-04-11 Thread Eelco Hillenius
> The purpose of the *public* static final long serialVersionUID is for long Why do you stress *public*? private is the norm for serialVersionUID. Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: serialVersionUID

2009-04-11 Thread Luther Baker
I don't know much about it ... but would something like Terracotta use/require/leverage the serialVersionUID for something not so obvious in normal, singly homed deployments? I think I understand that it helps confirm or explicitly 'version' components that might be working tog

Re: serialVersionUID

2009-04-11 Thread Adriano dos Santos Fernandes
Brill Pappin wrote: Actually i don't think a missing one will cause that to fail unless there are a lot of incompatible changes. Just one incompatible change of class stored in the session and it will not be deserialized. However... even if it does matter, *in no way* should anyone depend o

Re: serialVersionUID

2009-04-11 Thread Brill Pappin
Actually i don't think a missing one will cause that to fail unless there are a lot of incompatible changes. However... even if it does matter, *in no way* should anyone depend on a serialized session to store data if your app can't recover from a clean session, you have bigger problem

Re: serialVersionUID

2009-04-11 Thread Brill Pappin
*public* static final long serialVersionUID is for long term storage or situations where you may potentially have made modifications to the class that make it incompatible with previous versions (distributed apps/clustering). It only prevents trivial changes (e.g. adding a public method) from b

Re: serialVersionUID

2009-04-11 Thread Adriano dos Santos Fernandes
Brill Pappin wrote: Yes, its fine. you really only need to worry about that kind of thing when you are passing java serialized classes between VMs (as in RMI). In fact, you likely don't really even need to bother for Wicket, and you can turn off that check in Eclipse. If you care about inabili

Re: serialVersionUID

2009-04-11 Thread Brill Pappin
9:45 AM, Luther Baker wrote: A quick question - is it generally acceptable to use private static final long serialVersionUID = *1L*; for most the anonymous inner class I create using Wicket? Specifically, I'm asking about using the value (-1). I've seen this idiom in the so

Re: serialVersionUID

2009-04-11 Thread Luther Baker
enefit, and suggests we needn't bother. I think I'll > turn off the Eclipse warning instead. > > -- Jim. > > On Sat, Apr 11, 2009 at 10:50 PM, John Krasnay wrote: > > > On Sat, Apr 11, 2009 at 05:32:51PM -0400, Ben Tilford wrote: > > > The purpose of the *pub

Re: serialVersionUID

2009-04-11 Thread Jim Pinkham
-0400, Ben Tilford wrote: > > The purpose of the *public* static final long serialVersionUID is for > long > > term storage or situations where you may potentially have made > modifications > > to the class that make it incompatible with previous versions > (distributed > &g

Re: serialVersionUID

2009-04-11 Thread John Krasnay
On Sat, Apr 11, 2009 at 05:32:51PM -0400, Ben Tilford wrote: > The purpose of the *public* static final long serialVersionUID is for long > term storage or situations where you may potentially have made modifications > to the class that make it incompatible with previous versions (di

Re: serialVersionUID

2009-04-11 Thread Ben Tilford
The purpose of the *public* static final long serialVersionUID is for long term storage or situations where you may potentially have made modifications to the class that make it incompatible with previous versions (distributed apps/clustering). I'd say that its easier to just add it in cas

Re: serialVersionUID

2009-04-11 Thread Luther Baker
> > You don't need a serialVersionUID for serialization to work (and > certainly not a unique one, or your plan for using 1L wouldn't very > well). > Thanks. -Luther

Re: serialVersionUID

2009-04-11 Thread John Krasnay
t or Java webapps would require > proper serial ids for? > > -Luther You don't need a serialVersionUID for serialization to work (and certainly not a unique one, or your plan for using 1L wouldn't very well). jk --

Re: serialVersionUID

2009-04-11 Thread Luther Baker
On Sat, Apr 11, 2009 at 12:59 PM, John Krasnay wrote: > On Sat, Apr 11, 2009 at 08:45:31AM -0500, Luther Baker wrote: > > A quick question - is it generally acceptable to use > > > > private static final long serialVersionUID = *1L*; > > > > for

Re: serialVersionUID

2009-04-11 Thread John Krasnay
On Sat, Apr 11, 2009 at 08:45:31AM -0500, Luther Baker wrote: > A quick question - is it generally acceptable to use > > private static final long serialVersionUID = *1L*; > > for most the anonymous inner class I create using Wicket? Specifically, I'm > asking ab

serialVersionUID

2009-04-11 Thread Luther Baker
A quick question - is it generally acceptable to use private static final long serialVersionUID = *1L*; for most the anonymous inner class I create using Wicket? Specifically, I'm asking about using the value (-1). I've seen this idiom in the source but wasn't sure if

Re: Is serialVersionUID really required?

2008-02-14 Thread Johan Compagner
cross all servers in cluster. > 5) When deploying a new release, all servers will be > stopped/undeployed/deployed/started at the same time. > > Is that enough to avoid potential serialization issues that may be > caused by not supplying serialVersionUID? > > Yuesong > >

RE: Is serialVersionUID really required?

2008-02-14 Thread Wang, Yuesong
across all servers in cluster. 5) When deploying a new release, all servers will be stopped/undeployed/deployed/started at the same time. Is that enough to avoid potential serialization issues that may be caused by not supplying serialVersionUID? Yuesong -Original Message- From: Johan

Re: Is serialVersionUID really required?

2008-02-14 Thread Johan Compagner
not that importand it is just easier to cluster over different jvms (which doesnt happen a lot) but it is also easier to upgrade an existing code. Because the generated serialVersionUID does change for the most stupid ways (i guess they have to do that but most of the time i don;t care if i added

Is serialVersionUID really required?

2008-02-14 Thread Wang, Yuesong
Hi, In theory, all Serializable classes should have a serialVersionUID, but to provide one to every annonymous inner class used everywhere in a Wicket app is just too much. So I decided to turn off that warning in Eclipse, and not to use serialVersionUID any more, but what is the implication