Rickard,
I have found the problem with QI-228, and although we probably won't
encounter it much in reality, I think we need to "fix it" at least to
produce an error for it.
The interface method is;
Collection<Integer> getNumbers();
but the implementation method is
public List<Integer> getNumbers()
And this is legal Java syntax by all means. However, CGLib is getting
confused, and it creates one MethodProxy for each of those methods.
Upon invokeSuper(), somehow the MethodProxy for the interface method
is chosen, and then I am not sure why it routes to the
ThisCompositeInvoker, but that is what is happening.
If the return type matches, then CGLib will only create a single
MetodProxy and things works.
What should we do?
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