Doc: @Scope not inherited from base class [SPR-16602] #21143
Labels
status: backported
An issue that has been backported to maintenance branches
type: documentation
A documentation task
Milestone
Max Huang opened SPR-16602 and commented
Bean definition inheritance documentation states the following:
A child bean definition inherits scope, constructor argument values, property values, and method overrides from the parent, with the option to add new values. Any scope, initialization method, destroy method, and/or static factory method settings that you specify will override the corresponding parent settings.
The remaining settings are always taken from the child definition: depends on, autowire mode, dependency check, singleton, lazy init.
Based on the above statement, the scope of the child bean below should be prototype, however, it shows the child's scope as singleton.
Is the above behavior due to the the child bean takes in the default scope (which is a singleton) and overrides the parent's scope?
Affects: 4.3.14, 5.0.4
Referenced from: commits 914b247, 8818176
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: