[jboss-jira] [JBoss JIRA] (AS7-2095) InvocationContext#getMethod does not return null for lifecycle callback methods

jaikiran pai (Created) (JIRA) jira-events at lists.jboss.org
Thu Oct 13 12:42:16 EDT 2011


InvocationContext#getMethod does not return null for lifecycle callback methods
-------------------------------------------------------------------------------

                 Key: AS7-2095
                 URL: https://issues.jboss.org/browse/AS7-2095
             Project: Application Server 7
          Issue Type: Bug
          Components: EE
    Affects Versions: 7.0.2.Final
            Reporter: jaikiran pai
            Assignee: jaikiran pai


The spec says, for InvocationContext.getMethod():
{quote}

getMethod

java.lang.reflect.Method getMethod()

    Returns the method of the target class for which the interceptor was invoked. For method interceptors, the method of the target class is returned. For lifecycle callback interceptors, a null value is returned.

    Returns:
        the method, or a null value

{quote}

However, currently invoking InvocationContext.getMethod() in a interceptor's lifecycle callback method returns a non-null value.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list