----- Original Message ----- From: "Mark Galbreath" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 9:49 PM Subject: RE: [OT] Not spam...I swear--
> You can also use the Externalizable interface as well as place any object in > an array and serialize the array. Ehh... Externalizable extends Serializable, so it still holds that only objects of class that - directly or indirectly - implement Serializable can be serialized. As for placing an otherwise non-serializable object into an array, and then serializing the array: you'll still get a java.io.NotSerializableException as soon as the serialization machinery encounters the first component of the array that isn't serializable. If objects of any class were serializable, this exception class needn't exist. Attila. > > Mark > > -----Original Message----- > From: Brian Lee [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 2:44 PM > To: [EMAIL PROTECTED] > Subject: RE: [OT] Not spam...I swear-- > > > Only objects that implement java.io.Serializable should be serialized. > > Although it might be possible to serialize a class that doesn't implement > Serializable, the interface exists for a reason. Use it to flag that your > class is safe to be serialized. > > BAL > > >From: "Mark Galbreath" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > >Subject: RE: [OT] Not spam...I swear-- > >Date: Tue, 21 Jan 2003 14:30:30 -0500 > > > >He was probably confusing serializable with default synchronization. > >Any Java object can be serialized. > > > >-----Original Message----- > >From: Attila Szegedi [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, January 21, 2003 12:49 PM > > > >Wrong. Hashtables are serializable just fine. > > > >Attila. > > > >----- Original Message ----- > >From: "NoSect" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > > > > > Vectors are also serialized....hashtables not. > > > > > > > >-- > >To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

