You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/05/19 16:07:38 UTC

[jira] [Commented] (JENA-698) org.apache.jena.atlas.iterator.FilterStack#accept returns incorrect value

    [ https://issues.apache.org/jira/browse/JENA-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001709#comment-14001709 ] 

ASF subversion and git services commented on JENA-698:
------------------------------------------------------

Commit 1595909 from [~andy.seaborne] in branch 'jena/trunk'
[ https://svn.apache.org/r1595909 ]

JENA-698

> 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
>
> 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)