[ 
https://issues.apache.org/jira/browse/JENA-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-698.
--------------------------------

    Resolution: Fixed
      Assignee: Andy Seaborne

Thanks - should now be fixed in SVN (and some tests included).

> org.apache.jena.atlas.iterator.FilterStack#accept returns incorrect value
> -------------------------------------------------------------------------
>
>                 Key: JENA-698
>                 URL: https://issues.apache.org/jira/browse/JENA-698
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 2.11.0
>            Reporter: Matthew Jarvis
>            Assignee: Andy Seaborne
>
> To reproduce:
> {noformat}
> private static class AlwaysAcceptFilter implements Filter<Object> {
>   public boolean accept(Object o) {
>     return true;
>   }
> }
> private static class AlwaysAcceptFilterStack extends FilterStack<Object> {
>   public AlwaysAcceptFilterStack(Filter f) {
>     super(f);
>   }
>   public boolean acceptAdditional(Object o) {
>     return true;
>   }
> }
> @Test
> public void testAccept() {
>   Filter<Object> filter = new AlwaysAcceptFilter();
>   FilterStack<Object> filterStack = new AlwaysAcceptFilterStack(filter);
>   // this assertion fails
>   Assert.assertEquals(true, filterStack.accept(new Object()));
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to