[jboss-jira] [JBoss JIRA] Commented: (JBAOP-563) get(FieldReadInvocation invocation) signature not supported

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Wed Apr 23 11:23:07 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAOP-563?page=comments#action_12410272 ] 
            
Galder Zamarreno commented on JBAOP-563:
----------------------------------------

>From a email thread with Flavia, this bug does not affect AOP 2.x 
due to the following:

"The code that handles the case shown in the forum and in the support 
case has been replaced by a simpler one: 
http://jira.jboss.com/jira/browse/JBAOP-382

On the other hand, the new instrumentation mode supports several different 
signatures, and has a very rigorous checking to avoid those types of errors 
as the one you forwarded me.

This checking has been added during development of the following tasks:
http://jira.jboss.com/jira/browse/JBAOP-37
http://jira.jboss.com/jira/browse/JBAOP-387
http://jira.jboss.com/jira/browse/JBAOP-385

But, if I had to pick one of the tasks, I would pick 387, which is more closely 
related to what you're talking about."

> get(FieldReadInvocation invocation) signature not supported
> -----------------------------------------------------------
>
>                 Key: JBAOP-563
>                 URL: http://jira.jboss.com/jira/browse/JBAOP-563
>             Project: JBoss AOP
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.5.5.GA
>            Reporter: Galder Zamarreno
>
> Creating an Advice containing a method with this signature:
> public Object get(FieldReadInvocation invocation)	
> Throws an Exception like this:
> java.lang.ClassCastException: com.foo.bar.portal.presentation.DefaultActionBeanContext$portalService_Set
>         at org.jboss.aop.advice.com.foo.bar.core.aop.aspects.InjectSessionBeanAspect1.invoke(InjectSessionBeanAspect1.java)
>         at com.foo.bar.portal.presentation.DefaultActionBeanContext$portalService_Set.invokeNext(DefaultActionBeanContext$portalService_Set.java)
>         at com.foo.bar.portal.presentation.DefaultActionBeanContext.portalService_w_$aop(DefaultActionBeanContext.java)
>         at com.foo.bar.portal.presentation.DefaultActionBeanContext.<init>(DefaultActionBeanContext.java:40)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>         at java.lang.Class.newInstance0(Class.java:350)
>         at java.lang.Class.newInstance(Class.java:303)

-- 
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