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

callback method search is not considering the overriding rule.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.3
    • 3.1.3
    • container system
    • None
    • 3.1.3-snapshot , geronimo 2.2.1 jetty release

    Description

      Considering following scenario:

      Bean is a EJB, BeanSuper is the Bean's super class.

      BeanSuper {

      @PostConstruct
      private void postConstructMethodInBeanSuper() throws RuntimeException

      { System.out.println( " post construct method in bean super") }

      }

      @Stateless(name="Bean")
      Bean extends BeanSuper {

      protected void postConstructMethodInBeanSuper() throws RuntimeException

      { System.out.println( " post construct method in bean") }

      }

      When container invoke the @postconstruct callback method. It should call BeanSuper#postConstructMethodInBeanSuper() instead of Bean#postConstructMethodInBeanSuper() because BeanSuper#postConstructMethodInBeanSuper() is a private method that can't be overridden.

      Attachments

        1. 1299_31branch.patch
          9 kB
          Lin Quan Jiang
        2. 1299_trunk.patch
          4 kB
          Lin Quan Jiang
        3. OPENEJB-1299.diff
          4 kB
          Lin Quan Jiang

        Activity

          People

            Unassigned Unassigned
            genspring Lin Quan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: