[jboss-jira] [JBoss JIRA] Closed: (JBAOP-341) ClassCastException on MethodWrapper for BootClassPath GenAdvisor Tests

Flavia Rainone (JIRA) jira-events at jboss.com
Thu Jan 18 10:44:52 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAOP-341?page=all ]

Flavia Rainone closed JBAOP-341.
--------------------------------

    Resolution: Done

Does not affect 2.0.0 branch. Generated Advisors are not supported on 1.5.4.

> 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
>         Assigned To: Flavia Rainone
>             Fix For: 1.5.4.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