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

Markus Nigbur updated LUCENENET-124:
------------------------------------

    Attachment: ParameterSerialization.patch

If you try to serialize a parsed (Boolean, others are untested)query, send it 
to a web service or something similar and deserialize it again, all parameter 
information will be lost.

That's because allParameters is a static Dictionary and the BooleanClause 
checks it's occurrences with .equals(). E.g. BooleanClause Line 109

This applies to version 2.1.0

Attached is a new patch without messing up the tabs.

> Util.Parameter is not Serializable
> ----------------------------------
>
>                 Key: LUCENENET-124
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-124
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: Any
>            Reporter: Markus Nigbur
>         Attachments: Parameter.diff, ParameterSerialization.patch
>
>
> The Java version relies on ReadResolve(), which isn't implemented in .Net.
> I'll attach a working version.

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

Reply via email to