[ 
https://issues.apache.org/jira/browse/SOLR-7514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537398#comment-14537398
 ] 

ASF subversion and git services commented on SOLR-7514:
-------------------------------------------------------

Commit 1678648 from [~andyetitmoves] in branch 'dev/trunk'
[ https://svn.apache.org/r1678648 ]

SOLR-7514: SolrClient.getByIds fails with ClassCastException

> SolrClient.getByIds(ArrayList<String>) fails with class cast exception
> ----------------------------------------------------------------------
>
>                 Key: SOLR-7514
>                 URL: https://issues.apache.org/jira/browse/SOLR-7514
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 5.1
>         Environment: Java 1.7
>            Reporter: Tom Farnworth
>            Assignee: Ramkumar Aiyengar
>         Attachments: SOLR-7514.patch
>
>
> In the getById(collection<String>) function SolrClient:1172
> reqParams.set("ids", (String[]) ids.toArray());
> throws a ClassCastException: Object[] cannot be cast to String[]
> The call for toArray should be changed to the typed version
> reqParams.set("ids", ids.toArray(new String[ids.size()]));



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to