commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <>
Subject Re: [functor] Method 'XXX' is not designed for extension
Date Wed, 24 Aug 2011 08:14:12 GMT
Hi Matthew!

agreed on such 3rd parties integrations you are speaking about, Google
Guice would suffer the same (I'm not a fan of Spring :P)

Anyway, as you already mentioned, it is a matter of design, IMHO
subclassing those classes wouldn't have a lot of sense, since they are
used to implement a kind of "expression language" - I would be scared
if in my language I could change the semantic of my syntax...

At the same time I wonder if it would make sense intercepting such
calls... didn't think to any valid example, do you have one?

Since I'm not the original author of [functor] and I'm just providing
help to get it in a state to be released, better if more people are
involved before doing any action :P

Thanks for your feedbacks, have a nice day!!!
All the best,

On Wed, Aug 24, 2011 at 12:25 AM, Matthew Pocock
<> wrote:
> Final classes don't always play well with things like aspects and dependency
> injection and other things that mangle bytecode or dynamically introduce
> subclasses/proxies (I'm thinking SPRING). Perhaps this is not an issue here.
> Should these classes be final? Taking the example of FoldLeft - are their
> circumstances where it would make sense to sub-class FoldLeft? Can it even
> be subclassed in a way that would produce something that behaved as a
> FoldLeft but over-wrote these flagged methods?
> Matthew
> On 23 August 2011 20:00, Simone Tripodi <> wrote:
>> Hi all guys,
>> in [functor] component there are several classes with checkstyle
>> errors[1] of the type
>>    Method 'XXXX' is not designed for extension - needs to be
>> abstract, final or empty.
>> My opinion is that such classes should be final - but what someone
>> else thinks about it?
>> TIA, all the best!!!
>> Simo
>> [1]
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> --
> Dr Matthew Pocock
> Visitor, School of Computing Science, Newcastle University
> mailto:
> gchat:
> msn:
> drdozer
> tel: (0191) 2566550
> mob: +447535664143

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

View raw message