Jun Tsai wrote:
I find if I use

@InjectObject("spring:testService")
public abstract ITestService getTestService();

It throws a java.lang.IllegalArgumentException:
    argument type mismatch.


If I use
@InjectObject("spring:testService")
public abstract Object getTestService();



ITestService testService=(ITestService)getTestService();

The code throws java.lang.ClassCastException.I debug this.I find the class is TestService$$EnhanceByCGLIB$$b324af4b.



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

Reply via email to