Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1121

@PostConstruct method invoked on super-class and sub-class

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 4.2.1.Final
    • None
    • ErraiCDI, ErraiIOC
    • None

    Description

      Given this:

      class A {
      
          @PostConstruct
          public void doSomething() {
              //blah blah
          }
      
      }
      
      class B extends A {
      
          @Override
          @PostConstruct
          public void  doSomething() {
              //blah blah
          }
      
      }
      

      The doSomething() method is invoked twice when injecting B somewhere.

      Attachments

        Issue Links

          Activity

            People

              mbarkley_jira Max Barkley (Inactive)
              manstis@redhat.com Michael Anstis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: