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
Jörg Schaible
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | ConstructorComponentAdapter.java.diff [ 11381 ] |
Jörg Schaible
made changes -
Attachment | AbstractMultipleConstructorTestCase.java.diff [ 11382 ] |
Miguel Paraz
made changes -
Attachment | ConstructorComponentAdapter.java.diff [ 11396 ] |
Miguel Paraz
made changes -
Attachment | ParameterListUpdatedTestCase.diff [ 11397 ] |
Miguel Paraz
made changes -
Attachment | ParameterListUpdatedTestCase2.diff [ 11398 ] |
Aslak Hellesøy
made changes -
Aslak Hellesøy
made changes -
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)