-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.1
-
Fix Version/s: 5.2
-
Component/s: clients - java
-
Labels:None
-
Environment:
Java 1.7
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()]));