[jboss-jira] [JBoss JIRA] (JBAOP-738) Error for overloaded methods with Invocations and Joinpoint

Flavia Rainone (JIRA) issues at jboss.org
Tue Jun 23 00:07:03 EDT 2015


     [ https://issues.jboss.org/browse/JBAOP-738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flavia Rainone reassigned JBAOP-738:
------------------------------------

    Assignee:     (was: Flavia Rainone)


> Error for overloaded methods with Invocations and Joinpoint
> -----------------------------------------------------------
>
>                 Key: JBAOP-738
>                 URL: https://issues.jboss.org/browse/JBAOP-738
>             Project: JBoss AOP
>          Issue Type: Bug
>    Affects Versions: 2.1.1.GA
>            Reporter: Flavia Rainone
>
> JBoss AOP gets confused when, for a typed advice that not around, the advice method is overloaded and there is a version that receives an Invocation. So, for the example below:
> public Object adendo(@JoinPoint MethodInvocation invocation,
> 			@Args Object[] args)
> 	throws Throwable {...}
> 	
>        
> public void adendo(@JoinPoint MethodExecution joinpoint,
> 			@Args Object[] args)
> 	throws Throwable {...}
> JBoss AOP will complain of the version with Invocation, stating it is inappropriate for an advice of type before/after/whatever, while it should be able of finding the version that gets a MethodExecution and bind that version of " adendo" method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list