ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Extending path
Date Tue, 15 Jun 2010 12:47:24 GMT
On 2010-06-14, Jon Stevens wrote:

> On Mon, Jun 14, 2010 at 2:06 AM, Stefan Bodewig <> wrote:
>>  Since that method is final (at least in 1.8.0) you can't even
>> override it.

> Yea, can we talk about this? It seems like there is a lot of places
> where ant discourages people from being able to override stuff. Is
> there a good reason for that?

The more things are final the more freedom we have to change things
without breaking backwards compatibility.  For example I had to tunnel
new arguments in ThreadLocals inside the <zip> task because a different
task (jarjar) was overriding a protected method that I no longer
intended to invoke directly for 1.8.0.

I've been doing C# during ${dayjob} for most of the last five years and
there "final" is the default.  It forces you to think about what
extension points you are willing to support in the future.  Nowadays I
tend to make things final in Java as well and only open up access as

This is just my personal opinion and doesn't necessary reflect what
others around here think.  YMMV.


Looks a lot nicer than the initial version, congrats.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message