From fdd31c0e6626b56f4fe50fcb9ee85a7024ee81d4 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 22 Jan 2014 22:40:10 +0100 Subject: [PATCH] Preserve visitBeanDefinition stacktrace in BeanDefinitionStoreException Issue: SPR-11346 --- .../beans/factory/config/PlaceholderConfigurerSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/PlaceholderConfigurerSupport.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/PlaceholderConfigurerSupport.java index 2f6bd6865a1..43e9674a6fc 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/PlaceholderConfigurerSupport.java +++ b/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"); * you may not use this file except in compliance with the License. @@ -206,7 +206,7 @@ public abstract class PlaceholderConfigurerSupport extends PropertyResourceConfi visitor.visitBeanDefinition(bd); } catch (Exception ex) { - throw new BeanDefinitionStoreException(bd.getResourceDescription(), curName, ex.getMessage()); + throw new BeanDefinitionStoreException(bd.getResourceDescription(), curName, ex.getMessage(), ex); } } }