Consistent references to plain class names in exception messages

Issue: SPR-14883
This commit is contained in:
Juergen Hoeller
2016-11-07 22:10:26 +01:00
parent b3cd1ad7f1
commit c44c607570

View File

@@ -648,7 +648,7 @@ public abstract class ReflectionUtils {
declaredMethodsCache.put(clazz, (result.length == 0 ? NO_METHODS : result));
}
catch (Throwable ex) {
throw new IllegalStateException("Failed to introspect Class [" + clazz +
throw new IllegalStateException("Failed to introspect Class [" + clazz.getName() +
"] from ClassLoader [" + clazz.getClassLoader() + "]", ex);
}
}
@@ -747,7 +747,7 @@ public abstract class ReflectionUtils {
declaredFieldsCache.put(clazz, (result.length == 0 ? NO_FIELDS : result));
}
catch (Throwable ex) {
throw new IllegalStateException("Failed to introspect Class [" + clazz +
throw new IllegalStateException("Failed to introspect Class [" + clazz.getName() +
"] from ClassLoader [" + clazz.getClassLoader() + "]", ex);
}
}