[Biojava-l] Serialization of SimpleSequences
Schreiber, Mark
mark.schreiber at agresearch.co.nz
Mon Oct 27 21:40:56 EST 2003
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:vc100 at doc.ic.ac.uk]
Sent: Tue 28/10/2003 2:06 p.m.
To: biojava-l at biojava.org
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 - Biojava-l at biojava.org
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.
=======================================================================
More information about the Biojava-l
mailing list