Skip to content

Commit fdd31c0

Browse files
committed
Preserve visitBeanDefinition stacktrace in BeanDefinitionStoreException
Issue: SPR-11346
1 parent cfa78a9 commit fdd31c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/config/PlaceholderConfigurerSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -206,7 +206,7 @@ protected void doProcessProperties(ConfigurableListableBeanFactory beanFactoryTo
206206
visitor.visitBeanDefinition(bd);
207207
}
208208
catch (Exception ex) {
209-
throw new BeanDefinitionStoreException(bd.getResourceDescription(), curName, ex.getMessage());
209+
throw new BeanDefinitionStoreException(bd.getResourceDescription(), curName, ex.getMessage(), ex);
210210
}
211211
}
212212
}

0 commit comments

Comments
 (0)