All standard java.util.List implementations already implement java.io.Serializable .
So even if java.util.List is not itself a subtype of java.io.Serializable , it should be safe so that the listing of the list is Serializable if you know it as one of the standard implementations like ArrayList or LinkedList .
If you're not sure, copy the list first (using something like new ArrayList(myList) ), then you know it's serializable.
skaffman Sep 07 '09 at 7:13 2009-09-07 07:13
source share