SPR-5663: test and fix: inconsistency between canRead() and read() on ReflectivePropertyResolver

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1052 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Andy Clement
2009-04-22 17:57:24 +00:00
parent bab98498d0
commit 95ea243026
2 changed files with 43 additions and 17 deletions
@@ -88,7 +88,7 @@ public class ReflectivePropertyResolver implements PropertyAccessor {
public TypedValue read(EvaluationContext context, Object target, String name) throws AccessException {
if (target == null) {
return null;
throw new AccessException("Cannot read property of null target");
}
Class<?> type = (target instanceof Class ? (Class<?>) target : target.getClass());