You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2007/01/10 23:47:27 UTC

[jira] Resolved: (JXPATH-20) [jxpath] JXPathContext.removeAll() doesn't remove all (just one)

     [ 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org