You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2007/01/27 21:40:49 UTC

[jira] Resolved: (LUCENE-785) RAMDirectory not Serializable

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

Michael McCandless resolved LUCENE-785.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

> RAMDirectory not Serializable
> -----------------------------
>
>                 Key: LUCENE-785
>                 URL: https://issues.apache.org/jira/browse/LUCENE-785
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.1
>            Reporter: Matthias Seidel
>         Assigned To: Michael McCandless
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: ramdir.serializable.diff
>
>
> The current implementation of RAMDirectory throws a NotSerializableException when trying to serialize, due to the inner class KeySet of HashMap not being serializable (god knows why)
> java.io.NotSerializableException: java.util.HashMap$KeySet
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
> Caused by line 43:
> private Set fileNames = fileMap.keySet();
> EDIT:
> while we're at it: same goes for inner class Values 
> java.io.NotSerializableException: java.util.HashMap$Values
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
> Collection files = fileMap.values();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org