[
https://issues.apache.org/jira/browse/SOLR-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657681#action_12657681
]
Yonik Seeley commented on SOLR-885:
-----------------------------------
bq. NamedListCodec dictates the root Object to be a NamedList
Agreed, but theType parameter is only used to cast the final root Object to the
Type.
So instead of this big patch, simply change the signature of the method:
public NamedList unmarshal(InputStream is)
To
public Object unmarshal(InputStream is)
> Generify NamedListCodec
> -----------------------
>
> Key: SOLR-885
> URL: https://issues.apache.org/jira/browse/SOLR-885
> Project: Solr
> Issue Type: Improvement
> Reporter: Noble Paul
> Priority: Minor
> Fix For: 1.4
>
> Attachments: SOLR-885.patch, SOLR-885.patch, SOLR-885.patch
>
>
> * make NamedListCodec a generic class which may be able to write any of the
> supported object
> * Deprecate NamedList and use only SimpleOrderedMap. (Yes it is backward
> compatible)
> * Ideally I wish to call this JavabinCodec because it should be able to be
> used to write any kind of supported objects
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.