Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2095

InvocationContext#getMethod does not return null for lifecycle callback methods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • 7.0.2.Final
    • EE
    • None

    Description

      The spec says, for InvocationContext.getMethod():

      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

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

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: