Felix
  1. Felix
  2. FELIX-3130

Nested composites throws StackOverflowError on instantiation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: iPOJO-1.8.0
    • Fix Version/s: ipojo-composite-1.8.2
    • Component/s: iPOJO
    • Labels:
      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>

        Activity

        Hide
        Clement Escoffier added a comment -

        iPOJO Compiste 1.8.2 was released.

        Show
        Clement Escoffier added a comment - iPOJO Compiste 1.8.2 was released.
        Hide
        Clement Escoffier added a comment -

        Fixed in trunk.

        The composite was trying to instantiate itself... A snapshot version will be available soon from apache-snapshots.

        Show
        Clement Escoffier added a comment - Fixed in trunk. The composite was trying to instantiate itself... A snapshot version will be available soon from apache-snapshots.
        Hide
        Thiago Souza added a comment -

        Actually... it's doing nothing, it's a simple class just like

        public class ComponentAImpl {}

        Show
        Thiago Souza added a comment - Actually... it's doing nothing, it's a simple class just like public class ComponentAImpl {}
        Hide
        Clement Escoffier added a comment -

        I've reproduced the issue.

        Show
        Clement Escoffier added a comment - I've reproduced the issue.
        Hide
        Clement Escoffier added a comment -

        Your description looks correct. Could you tell me what 'comp-a' is doing (just the description).

        Show
        Clement Escoffier added a comment - Your description looks correct. Could you tell me what 'comp-a' is doing (just the description).

          People

          • Assignee:
            Clement Escoffier
            Reporter:
            Thiago Souza
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development