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

Reference documentation declares inner beans being prototypes, which is wrong

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2
    • Component/s: [Documentation]
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The reference documentation on inner beans states inner beans become prototyped beans which is wrong.

      I gave it a quick try and in contrast to what is documented in the section for prototype beans, the inner bean indeed gets destruction callbacks applied. I guess the original statement intended to describe multiple instances being created. But if the bean does not really become a prototype scoped bean we shouldn't use the analogy here.

        Attachments

          Activity

            People

            • Assignee:
              pwebb Phil Webb
              Reporter:
              olivergierke Oliver Gierke
              Last updater:
              Pushkar Prakash
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 28 weeks, 3 days ago