[ https://issues.apache.org/jira/browse/TAP5-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14369574#comment-14369574 ]
Hudson commented on TAP5-2452: ------------------------------ SUCCESS: Integrated in tapestry-trunk-freestyle #1408 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/1408/]) TAP5-2452: prevent modifications to CaseInsensitiveMap's key set (jochen.kemnade: rev 0a19934571247b7642fb6b0a6899e2c368b1d0b9) * tapestry-ioc/src/test/groovy/ioc/specs/CaseInsensitiveMapSpec.groovy * commons/src/main/java/org/apache/tapestry5/ioc/util/CaseInsensitiveMap.java > Bug in CaseInsensitiveMap > ------------------------- > > Key: TAP5-2452 > URL: https://issues.apache.org/jira/browse/TAP5-2452 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-ioc > Affects Versions: 5.4, 5.3.8 > Reporter: Alex Lumpov > Fix For: 5.4 > > Attachments: mycaseinsetivemap.zip > > > {code} > /** > * > * @author AlexLumpov > */ > public class CaseInsensitiveMapTest extends Assert { > @Test > public void testRetainAllKeys() { > Map<String, String> map = new CaseInsensitiveMap<String>(); > map.put("1", "1"); > map.put("2", "2"); > map.put("3", "3"); > Collection<String> keysToRetain = Arrays.asList("3", "4", "5"); > HashSet<String> expected = new > HashSet<String>(Arrays.asList("3")); > boolean modified = map.keySet().retainAll(keysToRetain); > assertEquals(true, modified); > assertEquals(expected, map.keySet()); > } > } > {code} > Result: > {code} > java.lang.AssertionError: expected:<[3]> but was:<[2, 3]> > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)