[jira] Closed: (COLLECTIONS-239) In LinkIterator hasPrevious() is not working properly for the first entry

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (COLLECTIONS-239) In LinkIterator hasPrevious() is not working properly for the first entry

Gilles Sadowski (Jira)

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

Henri Yandell closed COLLECTIONS-239.
-------------------------------------

    Resolution: Won't Fix

Closing this as WONTFIX. I think it's burnt into the semantics of how the class works and this is a side-effect.

> 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
>             Fix For: 3.3
>
>         Attachments: COLLECTIONS-239-test.patch
>
>
> 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.