from: http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html
"When traversing a graph, an object may be encountered that does not support the Serializable interface. In this case the NotSerializableException will be thrown and will identify the class of the non-serializable object." ATTA On 9/30/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > I'm not sure it is a stupid question... I guess this enters the realm of > generic Java question, but I can't say I've ever thought about this > before... what happens if you have a class that implements serializable, > and you then extend that class and add a member that is NOT serializable? > Does that get flagged at compile-time? No, it wouldn't seem to: > > public class test implements java.io.Serializable { } > > class Nonser { } > > class test1 extends test { > private Nonser ns = new Nonser(); > } > > This compiled without error or warning. Unless I'm missing something, > class Nonser is NOT serializable, so by extension test1 should not be, > even though it is extending a class that is itself serializable. > > Like I said, this is one of those things I've never thought about before, > so I wonder what basic thing I've got messed up in my brain? :) > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > On Fri, September 30, 2005 3:57 am, Murray Collingwood said: > > That's a very good point..... I feel like I've asked a stupid question > now > > - duh! > > > > Thanks Starki > > > > On 30 Sep 2005 at 9:52, starki78 wrote: > > > >> I don't know if you have to use implements at all > >> because > >> the super-class does already implement it. > >> What would you like to achieve? > >> > >> Regards Starki > >> > >> > >> > >> > >> ---------- Initial Header ----------- > >> > >> From : "Murray Collingwood" [EMAIL PROTECTED] > >> To : user@struts.apache.org > >> Cc : > >> Date : Fri, 30 Sep 2005 17:27:19 +1000 > >> Subject : Serializable > >> > >> > >> > >> > >> > >> > >> > >> > Just a quick question. > >> > > >> > Does anybody follow any rule (personal or corporate) for when to use > >> "implements > >> > serializable" on a Struts form-bean? > >> > > >> > Kind regards > >> > mc > >> > > >> > > >> > FOCUS Computing > >> > Mob: 0415 24 26 24 > >> > [EMAIL PROTECTED] > >> > http://www.focus-computing.com.au > >> > > >> > > >> > > >> > -- > >> > No virus found in this outgoing message. > >> > Checked by AVG Anti-Virus. > >> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: > >> 29/09/2005 > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > >> > > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> -- > >> No virus found in this incoming message. > >> Checked by AVG Anti-Virus. > >> Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: > >> 29/09/2005 > >> > > > > > > > > FOCUS Computing > > Mob: 0415 24 26 24 > > [EMAIL PROTECTED] > > http://www.focus-computing.com.au > > > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: > 29/09/2005 > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >