[jboss-jira] [JBoss JIRA] Created: (JBAOP-365) Compile-time woven class advisor initialization fails if mixins config is available at runtime
Kabir Khan (JIRA)
jira-events at lists.jboss.org
Thu Feb 22 18:42:38 EST 2007
Compile-time woven class advisor initialization fails if mixins config is available at runtime
----------------------------------------------------------------------------------------------
Key: JBAOP-365
URL: http://jira.jboss.com/jira/browse/JBAOP-365
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.0.0.alpha2, 1.5.4.SP1
Reporter: Kabir Khan
Assigned To: Kabir Khan
Fix For: 1.5.5.GA, 2.0.0.alpha3
If a class is woven at compile-time and then at runtime a jboss-aop.xml containing mixins is available we fail when initialising the advisor. This is because the mixin interface methods are not present in the woven class.
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: addObserver
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:312)
at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:590)
at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:578)
at com.equitymethods.security.login.LoggedUser.<clinit>(LoggedUser.java)
... 51 more
Caused by: java.lang.NoSuchMethodException: addObserver
at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:323)
at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:331)
at org.jboss.aop.ClassAdvisor.populateMixinMethods(ClassAdvisor.java:394)
at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:290)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:271)
... 54 more
Need to check if the class actually implements the interface when populating the mixin methods
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list