You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2012/07/15 13:25:34 UTC

[jira] [Updated] (COLLECTIONS-363) TransformedMap is Serializable but its superclass doesn't define an accessible void constructor

     [ https://issues.apache.org/jira/browse/COLLECTIONS-363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart updated COLLECTIONS-363:
----------------------------------------

    Fix Version/s: 4.0
    
> TransformedMap is Serializable but its superclass doesn't define an accessible void constructor
> -----------------------------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-363
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-363
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Map
>    Affects Versions: 3.2
>            Reporter: Sebb
>             Fix For: 4.0
>
>         Attachments: COLLECTIONS-363-obj-test-fix.patch, COLLECTIONS-363.patch, TransformedMap.emptyCollection.version3.2.obj, TransformedMap.fullCollection.version3.2.obj
>
>
> TransformedMap is Serializable but its superclass doesn't define an accessible void constructor.
> For example, the following test fails:
> {code}
> public void testSerialisation() throws Exception {
>     TransformedMap<String, String, String, String> map = TransformedMap.decorate(
>             new HashMap<String, String>(),  NOPTransformer.<String> getInstance(), NOPTransformer.<String> getInstance());
>     ByteArrayOutputStream bytes = new ByteArrayOutputStream();
>     ObjectOutputStream out = new ObjectOutputStream(bytes);
>     out.writeObject(map); // fails with java.io.InvalidClassException: org.apache.commons.collections.splitmap.TransformedMap; no valid constructor
>     out.close();
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira