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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.2.1.Final
    • Fix Version/s: None
    • Component/s: ErraiCDI, ErraiIOC
    • Labels:
      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

              Assignee:
              mbarkley Max Barkley (Inactive)
              Reporter:
              manstis Michael Anstis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: