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

Frank Wesemann updated SOLR-1823:
---------------------------------

    Attachment: SOLR-1823.patch

This patch uses String.valueOf( entry.getKey ) to write an entry's key.  
It therefore could not fail.



> XMLWriter throws ClassCastException on writing maps other than <String,?>
> -------------------------------------------------------------------------
>
>                 Key: SOLR-1823
>                 URL: https://issues.apache.org/jira/browse/SOLR-1823
>             Project: Solr
>          Issue Type: Improvement
>          Components: documentation, Response Writers
>            Reporter: Frank Wesemann
>         Attachments: SOLR-1823.patch
>
>
> http://lucene.apache.org/solr/api/org/apache/solr/response/SolrQueryResponse.html#returnable_data
>  says that a Map "containing any of the items in this list" may be contained 
> in a SolrQueryResponse and will be handled by QueryResponseWriters.
> This is not true for (at least) Keys in Maps.
> XMLWriter tries to cast keys to Strings. 

-- 
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