You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2014/06/10 14:50:03 UTC
[jira] [Closed] (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:all-tabpanel ]
Andy Seaborne closed 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
> Assignee: Andy Seaborne
> Fix For: Jena 2.11.2
>
>
> 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)