cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <Ralph.Go...@dslextreme.com>
Subject Re: Expression Block
Date Wed, 15 Aug 2007 09:15:28 GMT
Oh darn. It is too late at night I guess. This example doesn't 
illustrate the problem as it doesn't matter whether the packages match.

Ralph Goers wrote:
> As I pointed out though, that can create problems for the 
> implementor.  As an example, you might have in an abstract class:
>
> public void something(String parm1) {
>    something(verify(parm1), null, null);
> }
>
> public void something(String parm1, String parm2) {
>    something(parm1, parm2, null);
> }
>
> public void something(String parm1, String, parm2, String parm3) {
>    doSomething(verifyP1(parm1), verifyP2(parm2), verifyP3(parm3));
> }
>
> protected abstract void doSomething(String parm1, String parm2, String 
> parm3);
>
> This construct can't be implemented if the packages aren't the same.
>> Carsten
>>
>>
>>   

Mime
View raw message