Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15532

Consistent overriding for all variants of init/destroy method inheritance

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.8, 5.0 RC1
    • Fix Version/s: 5.0 RC4
    • Component/s: Core:DI
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      beans default settings are set to each bean regardless of parent settings, parent init destroy method not called, when beans default init destroy method exists

      my guess is that the bug is here

      https://github.com/spring-projects/spring-framework/blob/8d707eb5304e42babe3d680c5cd3880869cfabe2/spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionParserDelegate.java#L356

      in the initialization of defaults.

      that it sets defaults regardless of parent settings

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              helpmepro1@gmail.com Shimon Doodkin
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                49 weeks, 5 days ago