rantav/hector — Issue #402: Singleton collections cannot be loaded once persisted
Author: btoddb
Created: 2012-01-26 23:39:12+00:00
State: open
Labels: bug, HOM

if a client instantiates a Collection using Collections.singleton(), singletonMap(), or singletonList() the collection cannot be loaded after persisted because there isn't a default constructor and should be created using the above methods.

To get around this, the class name associated with any collection instantiated using the above methods will be converted to its non-singleton counterpart, HashSet, HashMap, and ArrayList respectively before persisting.