[
http://jira.jboss.com/jira/browse/JBAOP-563?page=all ]
Galder Zamarreno closed JBAOP-563.
----------------------------------
Resolution: Won't Fix
Given that there's a perfect workaround with minor
work required to make it work and the JBoss AOP in 2.x
is quite different, we won't be porting the fix to AOP 1.x.
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
Assigned To: 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