Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1360

Possible Bug in AnnotationDeployer # processCallbacks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      In AnnotationDeployer # processCallbacks method, there is a check for each
      callback/around....configuration,

      LifecycleCallback postConstruct = getFirst(bean.getPostConstruct());
      if(postConstruct == null){
      for (Method method : classFinder.findAnnotatedMethods(PostConstruct.class)) {
      ......
      }
      }

      Firstly, code checks that callback is defined on deployment descriptor, if it is
      defined, no more annotation check is done. I think that this is not correct
      behaviour because it eats interceptors that are defined on "superclasses".

      Also, interceptor specification talks about merging annotation and DD.

      Attachments

        1. patch.txt
          12 kB
          Gurkan Erdogdu

        Activity

          People

            Unassigned Unassigned
            gerdogdu Gurkan Erdogdu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: