Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-5
-
Fix Version/s: 1.0-beta-5
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
Current implementation of ConstructingComponentAdapter will always select the ctor with the highest arity of a component. This strategy ignores completely if a user has provided parameters at the component registration.
The number of parameters and their type should be honored selecting the best ctor of a component.
Issue Links
- duplicates
-
PICO-121
Don't throw ArrayIndexOutOfBoundsException if a matching constructor is not found
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | ConstructorComponentAdapter.java.diff [ 11381 ] |
| Attachment | AbstractMultipleConstructorTestCase.java.diff [ 11382 ] |
| Attachment | ConstructorComponentAdapter.java.diff [ 11396 ] |
| Attachment | ParameterListUpdatedTestCase.diff [ 11397 ] |
| Attachment | ParameterListUpdatedTestCase2.diff [ 11398 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Aslak Hellesoy [ rinkrank ] | |
| Fix Version/s | 1.0-beta-5 [ 10145 ] |
src/java/org/picocontainer/defaults/ConstructorComponentAdapter.java
Implementation for a ctor selcetion honoring given number of parameters and their type.
Fixes additionally
PICO-121(See the single line change in getAllSatisfiableConstructors)