[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Privileged Blocks Issue : JBAOP-675
flavia.rainone@jboss.com
do-not-reply at jboss.com
Thu Nov 20 14:54:48 EST 2008
"anil.saldhana at jboss.com" wrote : Is the call to AspectManager.getAdvisor happening from aop side or it is messaging aspect?
I think that the problem is still on the aop side. But I can't see what is wrong with that. Look at the piece of code below:
public synchronized ClassAdvisor getAdvisor(Class<?> clazz)
| {
| ClassAdvisor advisor = null;
| // See if one already exists
| advisor = (ClassAdvisor)findAdvisor(clazz);
| // if one does not
| if (advisor == null)
| {
| advisor = AdvisorFactory.getClassAdvisor(clazz, this);
| initialiseClassAdvisor(clazz, advisor);
| }
| return advisor;
| }
The line 707 is:
advisor = (ClassAdvisor)findAdvisor(clazz);
As the findAdvisor call doesn't appear at the stack, I would assume that the check is being performed for the casting. But this doesn't make any sense to me. Do you have any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191024#4191024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191024
More information about the jboss-dev-forums
mailing list