commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Reopened: (IO-181) LineIterator should implement Iterable
Date Sun, 07 Mar 2010 11:53:27 GMT


Niall Pemberton reopened IO-181:

I'm still against this - Iterable != Iterator and breaks the Iterable contract. Just because
its convenient doesn't mean its a good idea. I think this will cause confusion and people
to mis-use it, whatever the javadocs say.

> LineIterator should implement Iterable 
> ---------------------------------------
>                 Key: IO-181
>                 URL:
>             Project: Commons IO
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Michael Ernst
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> does not implement Iterable.  This makes
> it impossible to use in certain stylized ways, such as in a new-style for
> statement.  Such use is not always desirable (it might temporarily leak a
> file descriptor, until the finalizer is called), but should be possible in
> situations where it is known to be acceptable.

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

View raw message