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

Re: about serialVersionUID in all components

2010-05-08 Thread Martin Voigt
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

Re: serialVersionUID

2009-04-13 Thread James Carman
On Sun, Apr 12, 2009 at 1:46 PM, Ben Tilford bentilf...@gmail.com 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

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 Johan Compagner
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 esnu...@gmail.com wrote: serialVersionUID is very important, especially if you deal with serialized data saved

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 eelco.hillen...@gmail.comwrote: The purpose of the *public* static final long serialVersionUID is for long Why do you stress *public

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 something

Re: serialVersionUID

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

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 there was some

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 about using the value (-1

Re: serialVersionUID

2009-04-11 Thread Luther Baker
at 12:59 PM, John Krasnay j...@krasnay.ca 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 most the anonymous inner class I create using Wicket

Re: serialVersionUID

2009-04-11 Thread John Krasnay
such that there is no requirement from Wicket to use a valid, unique serial id for all these anonymous classes? Including the PageStore or anything else native to Wicket internals? Is there anything, whatsoever that Wicket or Java webapps would require proper serial ids for? -Luther You don't need a serialVersionUID

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 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 case you

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 (distributed apps

Re: serialVersionUID

2009-04-11 Thread Jim Pinkham
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 apps/clustering). It only prevents trivial changes

Re: serialVersionUID

2009-04-11 Thread Luther Baker
warning instead. -- Jim. On Sat, Apr 11, 2009 at 10:50 PM, John Krasnay j...@krasnay.ca wrote: 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

Re: serialVersionUID

2009-04-11 Thread Brill Pappin
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 source but wasn't

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

Re: serialVersionUID

2009-04-11 Thread Brill Pappin
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 breaking your

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

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

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 together or across

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

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

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

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
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 Compagner [mailto:[EMAIL PROTECTED] Sent: Thursday