Browse Source

Consistent references to plain class names in exception messages

Issue: SPR-14883
pull/1224/merge
Juergen Hoeller 8 years ago
parent
commit
c44c607570
  1. 4
      spring-core/src/main/java/org/springframework/util/ReflectionUtils.java

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

@ -648,7 +648,7 @@ public abstract class ReflectionUtils { @@ -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 { @@ -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);
}
}

Loading…
Cancel
Save