From a458d21b9fc30fc41e8c74162dd45e410386aa39 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Thu, 17 Jan 2008 14:25:08 +0000 Subject: [PATCH] Changed to be compatible with Spring 2.5. ManagedMap no longer has a constructor taking a map. --- .../config/FilterChainMapBeanDefinitionDecorator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/springframework/security/config/FilterChainMapBeanDefinitionDecorator.java b/core/src/main/java/org/springframework/security/config/FilterChainMapBeanDefinitionDecorator.java index 7df4caa8a4..044967eb1a 100644 --- a/core/src/main/java/org/springframework/security/config/FilterChainMapBeanDefinitionDecorator.java +++ b/core/src/main/java/org/springframework/security/config/FilterChainMapBeanDefinitionDecorator.java @@ -60,7 +60,10 @@ class FilterChainMapBeanDefinitionDecorator implements BeanDefinitionDecorator { } } - filterChainProxy.getPropertyValues().addPropertyValue("filterChainMap", new ManagedMap(filterChainMap)); + ManagedMap map = new ManagedMap(filterChainMap.size()); + map.putAll(filterChainMap); + + filterChainProxy.getPropertyValues().addPropertyValue("filterChainMap", map); return holder; }