Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.2
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
Currently in ConstructorInjectionComponentAdapter, when there are unsatisfiable dependencies found, the thrown exception contains all constructor parameters:
Line 97:
unsatisfiableDependencyTypes.add(Arrays.asList(parameterTypes));
This is very unfriendly when somethings goes wrong in components wiring, and i would find it much more convenient to have the unsatisfiableDependencyTypes set to contain only the unsatisfiable dependencies.
This can apparently be fixed by (for example...) simply replacing the line by:
unsatisfiableDependencyTypes.add(parameterTypes[j]);
Issue Links
- is duplicated by
-
PICO-157 CICA always reports all dependencies instead of only the missing ones
Activity
Jörg Schaible
made changes -
Jörg Schaible
made changes -
Fix Version/s | 1.3 [ 11331 ] | |
Environment |
Mauro Talevi
made changes -
Fix Version/s | 1.3 [ 11331 ] | |
Description |
Currently in ConstructorInjectionComponentAdapter, when there are unsatisfiable dependencies found, the thrown exception contains all constructor parameters: Line 97: unsatisfiableDependencyTypes.add(Arrays.asList(parameterTypes)); This is very unfriendly when somethings goes wrong in components wiring, and i would find it much more convenient to have the unsatisfiableDependencyTypes set to contain only the unsatisfiable dependencies. This can apparently be fixed by (for example...) simply replacing the line by: unsatisfiableDependencyTypes.add(parameterTypes[j]); |
Currently in ConstructorInjectionComponentAdapter, when there are unsatisfiable dependencies found, the thrown exception contains all constructor parameters: Line 97: unsatisfiableDependencyTypes.add(Arrays.asList(parameterTypes)); This is very unfriendly when somethings goes wrong in components wiring, and i would find it much more convenient to have the unsatisfiableDependencyTypes set to contain only the unsatisfiable dependencies. This can apparently be fixed by (for example...) simply replacing the line by: unsatisfiableDependencyTypes.add(parameterTypes[j]); |
Fix Version/s | 1.2 [ 11330 ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
Current behaviour is due to
PICO-157andPICO-134.PICO-157proposes an improvement in the following comments, that was never implemented.