Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3346

The component manager doesn't detect cycles in the initialization of singleton components

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When a singleton component triggers its own loading during its initialization (through a chain of dependencies), the component manager creates a new instance of it. In some cases this leads to a stack overflow, in other cases where the cycle breaks for some reason in the second iteration, it might also just lead to several instances of the singleton component.

      The component manager should prevent that a second instance of a singleton component is created and fail with a clear error.

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: