Issue Details (XML | Word | Printable)

Key: PICO-207
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Nick Sieger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
PicoContainer

Array cyclic dependencies

Created: 21/Aug/04 11:19 AM   Updated: 19/Oct/04 05:33 PM
Component/s: PicoContainer (Java)
Affects Version/s: None
Fix Version/s: 1.1

Time Tracking:
Not Specified

File Attachments: 1. File array-cyclicdep.diff (6 kB)
2. Java Source File ArrayCyclicDependencyTestCase.java (1 kB)

Issue Links:
Supercedes
 


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible added a comment - 21/Aug/04 05:09 PM
Well, you might also take it as feature and precaution against the Object[] fraud ...

Joerg Schaible added a comment - 19/Oct/04 05:33 PM
Fixed with refactoring of PICO-216