You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2015/02/14 21:41:34 UTC

svn commit: r1659858 - /lucene/dev/branches/branch_5x/solr/solrj/src/java/org/apache/solr/client/solrj/beans/DocumentObjectBinder.java

Author: noble
Date: Sat Feb 14 20:41:34 2015
New Revision: 1659858

URL: http://svn.apache.org/r1659858
Log:
SOLR-1945: Using java8 API causing error

Modified:
    lucene/dev/branches/branch_5x/solr/solrj/src/java/org/apache/solr/client/solrj/beans/DocumentObjectBinder.java

Modified: lucene/dev/branches/branch_5x/solr/solrj/src/java/org/apache/solr/client/solrj/beans/DocumentObjectBinder.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/solrj/src/java/org/apache/solr/client/solrj/beans/DocumentObjectBinder.java?rev=1659858&r1=1659857&r2=1659858&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/solrj/src/java/org/apache/solr/client/solrj/beans/DocumentObjectBinder.java (original)
+++ lucene/dev/branches/branch_5x/solr/solrj/src/java/org/apache/solr/client/solrj/beans/DocumentObjectBinder.java Sat Feb 14 20:41:34 2015
@@ -301,11 +301,7 @@ public class DocumentObjectBinder {
       if (typ.getClass() == Class.class) {//of type class
         type = (Class) typ;
       } else if (typ instanceof ParameterizedType) {
-        try {
-          type = Class.forName(((ParameterizedType) typ).getActualTypeArguments()[0].getTypeName());
-        } catch (ClassNotFoundException e) {
-          throw new BindingException("Invalid type information available for" + (field == null ? setter : field));
-        }
+        type = (Class) ((ParameterizedType) typ).getActualTypeArguments()[0];
       } else {
         throw new BindingException("Invalid type information available for" + (field == null ? setter : field));