[infinispan-issues] [JBoss JIRA] (ISPN-1359) SetExternalizer Cannot Properly Handle TreeSets Constructed With Comparator

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Mon Oct 29 11:24:01 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño updated ISPN-1359:
-----------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/1432

    
> 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: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list