clcron / guava-libraries

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

TreeMultimap has serialization issue #565

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create TreeMultimap using create(keyComparator, valueComparator) method
2. Provide comparator classes which are not declared serializable.
3. The class gets instantiated without any problem.

What is the expected output? What do you see instead?

- When trying to serialize the class, you get NotSerializableException error

What version of the product are you using? On what operating system?

Guava-r08 on JDK 1.6 for Mac OS X

Please provide any additional information below.

Original issue reported on code.google.com by yonseo...@gmail.com on 28 Feb 2011 at 6:52

GoogleCodeExporter commented 9 years ago
All serializable objects that make use of user-provided objects (including 
collection elements, comparators, or whatever) are not serializable if any of 
the user-provided objects they contain are not serializable. The same thing 
would happen with TreeMap, for example.

Original comment by cgdec...@gmail.com on 28 Feb 2011 at 7:55

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