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

StackOverflow when disposing the EmbeddableComponentManager

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.4
    • Fix Version/s: 7.1-milestone-1
    • Component/s: Component
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      This is because it's possible that some component's implementation be EmbeddableComponentManager, in which case when ECM.dispose() is called a stack overflow appears.

      For example if you do the following in a unit tests you'll get a stack overflow:

      this.componentManager.registerComponent(ComponentManager.class, "context", this.componentManager);
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: