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

Noble Paul updated SOLR-625:
----------------------------

    Priority: Trivial  (was: Major)

> addField throws exception in SolrDocument
> -----------------------------------------
>
>                 Key: SOLR-625
>                 URL: https://issues.apache.org/jira/browse/SOLR-625
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Priority: Trivial
>
> The following code throws Exception with SolrDocument
> {code:java}
> SolrDocument doc = new SolrDocument();
> doc.setField("id",new String []{"a","b"});
> doc.addField("id","c");
> {code}
> Exception
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException
>       at java.util.AbstractList.add(AbstractList.java:151)
>       at java.util.AbstractList.add(AbstractList.java:89)
>       at org.apache.solr.common.SolrDocument.addField(SolrDocument.java:136)
>       at Test.main(Test.java:145)
> {code}

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