[ https://issues.apache.org/jira/browse/JXPATH-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Benson resolved JXPATH-20. ------------------------------- Resolution: Fixed fixed in SVN HEAD. Thanks for the report. > [jxpath] JXPathContext.removeAll() doesn't remove all (just one) > ---------------------------------------------------------------- > > Key: JXPATH-20 > URL: https://issues.apache.org/jira/browse/JXPATH-20 > Project: Commons JXPath > Issue Type: Bug > Environment: Operating System: other > Platform: Other > Reporter: Giacomo Pati > > JXPathContext.removeAll() doesn't remove all items for a Collection path > supplied. > TestCase to reproduce: > public void testRemoveAllFromCollection() { > final Map map = new HashMap(); > final Collection list = new ArrayList(); > for(int i = 0; i < 20; i++) { > list.add("" + i); > } > map.put( "list", list); > JXPathContext context = JXPathContext.newContext(null, map); > context.removeAll( "list" ); > assertEquals("not all items removed", 0, list.size() ); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]