lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r809562 - /lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java
Date Mon, 31 Aug 2009 12:43:17 GMT
Author: uschindler
Date: Mon Aug 31 12:43:17 2009
New Revision: 809562

URL: http://svn.apache.org/viewvc?rev=809562&view=rev
Log:
Print the class name correctly.

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java?rev=809562&r1=809561&r2=809562&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java Mon Aug 31 12:43:17
2009
@@ -63,9 +63,9 @@
         try {
           return (AttributeImpl) getClassForInterface(attClass).newInstance();
         } catch (InstantiationException e) {
-          throw new IllegalArgumentException("Could not instantiate class " + attClass);
+          throw new IllegalArgumentException("Could not instantiate class " + attClass.getName());
         } catch (IllegalAccessException e) {
-          throw new IllegalArgumentException("Could not instantiate class " + attClass);
     
+          throw new IllegalArgumentException("Could not instantiate class " + attClass.getName());
         }
       }
       



Mime
View raw message