Hi -
 
I thought we had fixed that one although it turns out the unit test was a bit 
inadequate. Generally its not a good idea to make an interface implement serializable 
as there may be a perfectly valid implementation that can't implement serializable. 
Probably better to make as many of the implementations as possible serializable. I'll 
have a look at this.
 
- Mark
 

        -----Original Message----- 
        From: Vasa Curcin [mailto:[EMAIL PROTECTED] 
        Sent: Tue 28/10/2003 2:06 p.m. 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: [Biojava-l] Serialization of SimpleSequences
        
        

        Hello,
        
        While transferring some sequences via serialization, I noticed that all
        my Features are getting lost. After some digging around, it seems as if
        Java doesn't serialize the FeatureHolder inside the sequence (I was
        working with SimpleSequence objects). Even though a
        NotSerializableException is not thrown, the FeatureHolder is missing.
        After making the FeatureHolder interface in Biojava extend Serializable,
        the problem disappeared. How much will this change affect the rest of
        the code - ie. is there a good reason why FeatureHolders are not
        serializable?
        
        Cheers,
        Vasa
        
        _______________________________________________
        Biojava-l mailing list  -  [EMAIL PROTECTED]
        http://biojava.org/mailman/listinfo/biojava-l
        


=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================

_______________________________________________
Biojava-l mailing list  -  [EMAIL PROTECTED]
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to