[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Update required Java version to 5.0?

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Fri, 26 Feb 2010 08:04:29 -0600

On Feb 25, 2010, at 10:22 PM, Mark Phippard wrote:

> On Thu, Feb 25, 2010 at 6:49 PM, Hyrum K. Wright
> <hyrum_wright_at_mail.utexas.edu> wrote:
>> Just going through the svnj source, and I started wondering why we're not using generics in our own java packages. Generics were introduced in Java 5.0, but turns out that we only require 1.3 in our own source. Given that 5.0 was introduced in 2004, isn't it about time we relax our requirements and update our code to use the new features of 5.0? The change to our package namespace presents a good opportunity to do so.
>>
>
> I am pretty ambivalent on it. It would be a convenient time to do it,
> but at the same time off the top of my head I do not see where our
> code is going to benefit much from it. I do not recall us using a lot
> of Collections in our code and the API signatures do not return them,
> so why change from arrays to generics? It is also going to be more
> invasive for our users that have to convert their code even more.
>
> I think the thing that would swing me in favor of this would be seeing
> the actual improvements it could make to our code base. I am just not
> really seeing that.

We do have a number of APIs which throw around Maps and Lists, so, if anything, this allows us properly parameterize those. The reason to doing it now is that with the package rename, we can change an API like foo(Map m) to foo(Map<String,String> m) without having to change the name (since the erasures are the same, we couldn't just override the first with the second).

I'll look into this shortly.

-Hyrum
Received on 2010-02-26 15:05:07 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.