summaryrefslogtreecommitdiff
path: root/spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java
diff options
context:
space:
mode:
Diffstat (limited to 'spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java')
-rw-r--r--spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java b/spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java
index cf3ebd9a..f3e3bd14 100644
--- a/spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java
+++ b/spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java
@@ -90,11 +90,11 @@ public abstract class AbstractNestablePropertyAccessor extends AbstractPropertyA
private int autoGrowCollectionLimit = Integer.MAX_VALUE;
- private Object wrappedObject;
+ Object wrappedObject;
private String nestedPath = "";
- private Object rootObject;
+ Object rootObject;
/**
* Map with cached nested Accessors: nested path -> Accessor instance.
@@ -914,11 +914,9 @@ public abstract class AbstractNestablePropertyAccessor extends AbstractPropertyA
return BeanUtils.instantiate(type);
}
}
- catch (Exception ex) {
- // TODO: Root cause exception context is lost here; just exception message preserved.
- // Should we throw another exception type that preserves context instead?
+ catch (Throwable ex) {
throw new NullValueInNestedPathException(getRootClass(), this.nestedPath + name,
- "Could not instantiate property type [" + type.getName() + "] to auto-grow nested property path: " + ex);
+ "Could not instantiate property type [" + type.getName() + "] to auto-grow nested property path", ex);
}
}