----- Original Message ----- 
From: "Stefan Bodewig" <[EMAIL PROTECTED]>

> I think I remember it.  A problem arises when you have two different
> nested elements (element names) that both accept the same class.  Say
> you have <mypath> that is derived from Path, what would it be used for
> in
> 
> <javac ...>
>   <mypath .../>
> </javac>
> 
> src, classpath, sourcepath, bootclasspath and extdirs would be
> possible.  Has this been the reason for your choice Conor?  How would
> your patch deal with it Magesh?

If you have addMyPath(MyPath) that would be called;
Else
If you have addPath(Path), that would be called.

Do you think it would be better if the following happened 
instead?

If you have addMyPath(MyPath) that would be called;
Else
If you have addMyPath(Path), that would be called;
Else 
If you have addPath(Path), that would be called.

Basically, the motivation is to allow defining
a single addXXX(XXX) method where it makes sense
where XXX is assignable from a nested element's class.

> Stefan

Cheers,
Magesh



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to