Re: [jira] [Commented] (IO-588) IOUtils.writeLines() should accept an Iterable<>

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [jira] [Commented] (IO-588) IOUtils.writeLines() should accept an Iterable<>

jochen-2
On Fri, Oct 12, 2018 at 6:06 PM Gary Gregory (JIRA) <[hidden email]> wrote:

> Thank you for your patch but... -1 to this patch as it breaks binary compatibility.

Could you explain that, please? A Collection is, in particular, an
Iterable, thus the compiler should use the new methods, instead, as
far as I can tell.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [jira] [Commented] (IO-588) IOUtils.writeLines() should accept an Iterable<>

garydgregory
On Wed, Oct 31, 2018 at 7:39 AM Jochen Wiedmann <[hidden email]>
wrote:

> On Fri, Oct 12, 2018 at 6:06 PM Gary Gregory (JIRA) <[hidden email]>
> wrote:
>
> > Thank you for your patch but... -1 to this patch as it breaks binary
> compatibility.
>
> Could you explain that, please? A Collection is, in particular, an
> Iterable, thus the compiler should use the new methods, instead, as
> far as I can tell.
>

You are talking about _source_ compatibility. Binary compatibility should
allow a new jar to replace the old one, this change breaks that capability.

Gary

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>