Preserve visitBeanDefinition stacktrace in BeanDefinitionStoreException

Issue: SPR-11346
(cherry picked from commit fdd31c0)
master
Juergen Hoeller 11 years ago
parent 3310ab55e0
commit 8d304efad1
  1. 4
      spring-beans/src/main/java/org/springframework/beans/factory/config/PlaceholderConfigurerSupport.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2012 the original author or authors. * Copyright 2002-2013 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -208,7 +208,7 @@ public abstract class PlaceholderConfigurerSupport extends PropertyResourceConfi
visitor.visitBeanDefinition(bd); visitor.visitBeanDefinition(bd);
} }
catch (Exception ex) { catch (Exception ex) {
throw new BeanDefinitionStoreException(bd.getResourceDescription(), curName, ex.getMessage()); throw new BeanDefinitionStoreException(bd.getResourceDescription(), curName, ex.getMessage(), ex);
} }
} }
} }

Loading…
Cancel
Save