]
Mircea Markus updated ISPN-1359:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
SetExternalizer Cannot Properly Handle TreeSets Constructed With
Comparator
---------------------------------------------------------------------------
Key: ISPN-1359
URL:
https://issues.jboss.org/browse/ISPN-1359
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 5.0.0.FINAL
Environment: OSX 10.7.1, System JDK
Reporter: Ryan Scharer
Assignee: Galder ZamarreƱo
Priority: Minor
Fix For: 5.2.0.Beta3, 5.2.0.Final
TreeSets can be used to hold objects that don't implement Comparable, so long as you
provide a Comparator during construction. The current implementation of SetExternalizer
doesn't support this pattern... trying to deserialize a TreeSet that holds objects
that don't implement Comparable results in a ClassCastException. This seriously
reduces the flexibility of TreeSet.
JBoss Cache doesn't have this limitation, presumably because it delegates to native
Java serialization.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: