heathermiller / scala-pickling

Fast, customizable, boilerplate-free pickling support for Scala. MOVED TO http://github.com/scala/pickling
18 stars 1 forks source link

List[Int] fails a roundtrip in JSON #7

Closed xeno-by closed 11 years ago

xeno-by commented 11 years ago
scala> List(12).pickle.unpickle[List[Int]]
java.util.NoSuchElementException: key not found: value
    at scala.collection.MapLike$class.default(MapLike.scala:228)
    at scala.collection.AbstractMap.default(Map.scala:59)
    at scala.collection.MapLike$class.apply(MapLike.scala:141)
    at scala.collection.AbstractMap.apply(Map.scala:59)
    at scala.pickling.json.JSONPickleReader.readPrimitive(JSONPickleFormat.scala:162)
xeno-by commented 11 years ago

https://github.com/heathermiller/scala-pickling/commit/7c358f2d6e5f2afd225cd7a34abf919501ed7c5a