mengdiwang / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Missing custom serializer #529

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to serialize only the list in an ArrayListMultimap.
It seems that there's no custom serializer for RandomAccessWrappedList, which 
prevents this.

Original issue reported on code.google.com by tom...@gmail.com on 25 Jan 2011 at 8:08

GoogleCodeExporter commented 9 years ago
This is a GWT issue, of course...

Original comment by tom...@gmail.com on 25 Jan 2011 at 8:09

GoogleCodeExporter commented 9 years ago
There's nothing missing.  In Guava, the view collections of a parent collection 
are never GWT-serializable, nor are they Java-serializable.  BiMap.inverse() is 
the one exception I'm aware of.

Original comment by kevinb@google.com on 26 Jan 2011 at 12:23

GoogleCodeExporter commented 9 years ago
what's the rational behind providing serialization for the entire collection, 
but not for a sub or view collection?

Original comment by tom...@gmail.com on 26 Jan 2011 at 6:00

GoogleCodeExporter commented 9 years ago
You could try asking on stackoverflow why this is the case for JDK collections. 
Someone there can explain it better.  We're following the same rule as the JDK.

Original comment by kevinb@google.com on 26 Jan 2011 at 10:24

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09