You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by us...@apache.org on 2009/08/31 14:43:17 UTC
svn commit: r809562 -
/lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java
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());
}
}