Collections.sublist() returns a non-serializable list
This gotcha me today. The Collections.sublist() method returns an instance of java.util.RandomAccessSubList, which is obviously not serializable. Solution is easy - just add all contents to an serialziable list implemenation such as ArrayList.
Technorati Tags: Java
Comments