posted 11 years ago
I am practising out the AOP,
this is the code as follows,
this is Performer.java,
this is Singer.java,
this is Audience.java,
this is AudienceAround.java,
this is beans-cfg-3_0.xml,
and the class having the main method MainPractise35.java,
My question is, in the class MainPractise35.java, if i typecast the Singer class , i get error PROBLEM java.lang.ClassCastException: $Proxy7 cannot be cast to com.aoptwo.Singer
but if i typecast the same using Performer class it runs fine ,
this is the changed code,
So can you please explain why my previous code was not running, thought i am type casting Singer why it gives an Proxy error