[jboss-jira] [JBoss JIRA] Created: (JBAOP-341) ClassCastException on MethodWrapper for BootClassPath GenAdvisor Tests
Flavia Rainone (JIRA)
jira-events at jboss.com
Tue Jan 16 07:58:52 EST 2007
ClassCastException on MethodWrapper for BootClassPath GenAdvisor Tests
----------------------------------------------------------------------
Key: JBAOP-341
URL: http://jira.jboss.com/jira/browse/JBAOP-341
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Flavia Rainone
Fix For: 1.5.3.GA
Class Cast exception on method wrapper, for tests org.jboss.test.aop.basic.AOPTester.testInterfaceUsedInHas and org.jboss.test.aop.regression.jbaop137.ExtenderTestCase.testMethod.
On the first case, the method execution wrapper tries to cast: org.jboss.test.aop.basic.SubclassInterfaceUsedInHasImpl$SubclassInterfaceUsedInHasImplAdvisor
to org.jboss.test.aop.basic.InterfaceUsedInHasImpl$InterfaceUsedInHasImplAdvisor. But, even though SuclassInterfaceUsedInHasImpl extends InterfaceUsedInHasImpl, its advisor extends GeneratedAdvisor.
On the second test failure, an instance of org.jboss.test.aop.regression.jbaop137.Extender$ExtenderInstanceAdvisor
is cast to org.jboss.test.aop.regression.jbaop137.Base$BaseAdvisor. But this advisor extends org.jboss.test.aop.regression.jbaop137.Extender$ExtenderAdvisor,which extends GeneratedAdvisor.
The problem here is that the generated advisor of a class should extend the advisor of its superclass.
The problem happens only on bootclasspath-genadvisor-tests. For precompiled-genadvisor-tests, everything is as expected.
--
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