On Tue, May 12, 2009 at 7:08 PM, Staz . <[email protected]> wrote:

>> Also, (unless Rickard have made changes) if you have a CompositeA
>> extends A,B,Composite and you use
>> B b = factory.newComposite( B.class );
>>
>> then the returned instance can not be cast to A.
>>
>
> Weird, I remember testing that week or two ago, and it worked. Although, I
> don't remember exactly, did I use B.class or CompositeA.class in the builder
> creator factory. The codebase was month old or so anyway.
> But if what you say is true, then the system is not as simple as I thought
> and it changes things.

As I said, Rickard may have made changes in this field. I only recall
from memory the implementation quite some time back where the
resulting proxy returned only contained the type requested for. And I
can't recall any reason why that would have been changed.


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to