commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Pavlov (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (COLLECTIONS-239) In LinkIterator hasPrevious() is not working properly for the first entry
Date Tue, 06 Feb 2007 11:52:05 GMT

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

Michael Pavlov reopened COLLECTIONS-239:
----------------------------------------


Semantically hasNext() referes to last returned value ('last' field) (in java.util.Iterator
). 
Why hasPrevious() should use 'next' field (in LinkIterator)?


> In LinkIterator hasPrevious() is not working properly for the first entry
> -------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-239
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-239
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Iterator
>    Affects Versions: 3.2
>         Environment: Windows XP, jdk-1.5.0_02
>            Reporter: Michael Pavlov
>
> In hasPrevious() method of LinkIterator 'next' field is used, that is not correct  -
method returns 'true' for the first entry. 'last' field should be used insted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message