Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    this doesn't work because I get the error: Cannot reference foo before supertype constructor has been called Commented Dec 7, 2017 at 15:44
  • 1
    I don't want to touch the base class as it affect many other classes Commented Dec 7, 2017 at 16:43
  • @Richard, you can pass in null which is ugly, change the parent class, or move the logic out of the job, and just delegate to some field-injected bean that calls your fooB Commented Dec 7, 2017 at 16:45