Skip to content

Commit c44c607

Browse files
committed
Consistent references to plain class names in exception messages
Issue: SPR-14883
1 parent b3cd1ad commit c44c607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-core/src/main/java/org/springframework/util/ReflectionUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ private static Method[] getDeclaredMethods(Class<?> clazz) {
648648
declaredMethodsCache.put(clazz, (result.length == 0 ? NO_METHODS : result));
649649
}
650650
catch (Throwable ex) {
651-
throw new IllegalStateException("Failed to introspect Class [" + clazz +
651+
throw new IllegalStateException("Failed to introspect Class [" + clazz.getName() +
652652
"] from ClassLoader [" + clazz.getClassLoader() + "]", ex);
653653
}
654654
}
@@ -747,7 +747,7 @@ private static Field[] getDeclaredFields(Class<?> clazz) {
747747
declaredFieldsCache.put(clazz, (result.length == 0 ? NO_FIELDS : result));
748748
}
749749
catch (Throwable ex) {
750-
throw new IllegalStateException("Failed to introspect Class [" + clazz +
750+
throw new IllegalStateException("Failed to introspect Class [" + clazz.getName() +
751751
"] from ClassLoader [" + clazz.getClassLoader() + "]", ex);
752752
}
753753
}

0 commit comments

Comments
 (0)