From c44c6075701ff46d356f09729f5c738337add39a Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 7 Nov 2016 22:10:26 +0100 Subject: [PATCH] Consistent references to plain class names in exception messages Issue: SPR-14883 --- .../main/java/org/springframework/util/ReflectionUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java b/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java index 3ceec5037d..434ce082c3 100644 --- a/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java +++ b/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java @@ -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); } }