Bladeren bron

Changed to be compatible with Spring 2.5. ManagedMap no longer has a constructor taking a map.

Luke Taylor 17 jaren geleden
bovenliggende
commit
a458d21b9f

+ 4 - 1
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;
     }