Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3130

Nested composites throws StackOverflowError on instantiation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • iPOJO-1.8.0
    • ipojo-composite-1.8.2
    • iPOJO
    • None

    Description

      The following metadata.xml describes a composite with another nested composite. Instantiating "composite-external" throws a StackOverflowError

      <?xml version="1.0" encoding="UTF-8"?>
      <ipojo xmlns="org.apache.felix.ipojo" xmlns:c="org.apache.felix.ipojo.composite">

      <component name="comp-a" classname="test.ComponentAImpl" />

      <c:composite name="composite-internal">
      <instance component="comp-a" />
      </c:composite>

      <c:composite name="composite-external">
      <instance component="composite-internal" />
      </c:composite>

      </ipojo>

      Attachments

        1. stackoverflow.txt
          5 kB
          Thiago Souza

        Activity

          People

            clement.escoffier Clement Escoffier
            tsouza Thiago Souza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: