Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Number of attachments :
      2

      Description

      A component depending upon an array whose component type is assignable from the dependent component's results in a cyclic dependency exception. Rather than bailing, I'd like to see the array contain all matching components except for the dependent component being constructed.

      If this is acceptable behavior, attached is a patch and testcase that addresses the issue.

      1. array-cyclicdep.diff
        6 kB
        Nick Sieger
      2. ArrayCyclicDependencyTestCase.java
        1 kB
        Nick Sieger

        Issue Links

          Activity

          Hide
          Jörg Schaible added a comment -

          Well, you might also take it as feature and precaution against the Object[] fraud ...

          Show
          Jörg Schaible added a comment - Well, you might also take it as feature and precaution against the Object[] fraud ...
          Hide
          Jörg Schaible added a comment -

          Fixed with refactoring of PICO-216

          Show
          Jörg Schaible added a comment - Fixed with refactoring of PICO-216

            People

            • Assignee:
              Unassigned
              Reporter:
              Nick Sieger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: