lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Wesemann (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1823) XMLWriter throws ClassCastException on writing maps other than <String,?>
Date Mon, 15 Mar 2010 15:06:27 GMT

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


Mime
View raw message