View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820241#3820241
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820241 Been a while since I looked at this, but I believe this was the example i was playing with. class Run { public static void main( String[] args ) { Test t = new Test(); t.method(); } } class Test { public void method() { } } Have a caller pointcut picking out the call to Test.method() in from Run.main. invocation.targetObject is a Test instance. But Test isn't an Advised, Run is. So if you try to cast targetObject to an Advised you get a ClassCast. Reason I wanted to cast it to an Advised was to get all that other junk I needed, but your solution by passes all of my junk quite smoothly. Thanks :) ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
