commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: [io] 2.0 Moving to minimum of JDK 1.5
Date Fri, 08 Feb 2008 16:47:36 GMT
Hi,

On Feb 8, 2008 6:32 PM, Gary Gregory <GGregory@seagullsoftware.com> wrote:
> > You'd only need to upgrade to SomeClass2 if you actually need the new
> > functionality, otherwise you could just keep using the old API when
> > upgrading from 1.x to 2.x. With the o.a.c.io2 proposal everybody would
> > need to update their code when upgrading even if no part of the API
> > they touch has changed.
>
> I do not think this last paragraph is correct. The io2 package is
> not only free to introduce generics in the API, it is also free to
> use Java 5 features in its internal implementation.

Perhaps I'm being dense, but I don't get why we couldn't use Java 5
features in the internal implementation of the current Commons IO API?
If we declare Java 5 as a requirement for IO 2.x, then those Java 5
features should be available wherever you deploy the library and it
shouldn't matter how the internals work as long as the public API
remains backwards compatible.

We can always backport fixes and new functionality that don't depend
on Java 5 features to a 1.x branch that runs on earlier JVMs. There
should be no problem to keep such backports upwards compatible, so
that a 1.x client would remain functional when deployed with IO 2.x in
a Java 5 environment.

BR,

Jukka Zitting

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


Mime
View raw message