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

Flavia Rainone (JIRA) jira-events at lists.jboss.org
Sun Jun 21 19:50:56 EDT 2009


Error for overloaded methods with Invocations and Joinpoint
-----------------------------------------------------------

                 Key: JBAOP-738
                 URL: https://jira.jboss.org/jira/browse/JBAOP-738
             Project: JBoss AOP
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 2.1.1.GA
            Reporter: Flavia Rainone
            Assignee: 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list