You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define an abstract class Foo with an annotated init method.
Define a concrete class Bar with an annotated init method.
Define a bean instance of Bar.
After the bean instantiation the init method of Bar is called. Then the init method of Foo is called. This is probably the wrong way to do it since superclasses likely define/instantiate stuff children will depend on.
I revisited the order of both @PostConstruct and @PreDestroy processing for 3.0 RC1: @PostConstruct is now being processed top-down (base class first), whereas @PreDestroy is getting processed bottom-up (subclass first).
Joern Barthel opened SPR-6094 and commented
After the bean instantiation the init method of Bar is called. Then the init method of Foo is called. This is probably the wrong way to do it since superclasses likely define/instantiate stuff children will depend on.
Affects: 2.5.6
Attachments:
Referenced from: commits d4c16e9
The text was updated successfully, but these errors were encountered: