From 771a0b47cef5841d5e58f43a3481977ff5b13581 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 31 Aug 2009 12:43:17 +0000 Subject: [PATCH] Print the class name correctly. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@809562 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/util/AttributeSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/lucene/util/AttributeSource.java b/src/java/org/apache/lucene/util/AttributeSource.java index aff94421650..a92716cbf72 100644 --- a/src/java/org/apache/lucene/util/AttributeSource.java +++ b/src/java/org/apache/lucene/util/AttributeSource.java @@ -63,9 +63,9 @@ public class AttributeSource { 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()); } }