Under Constructor based dependency injection, in the code for buildWithConstructor(), the following lines should
be changed.Note that names.length should be changed to types.lenght.
existing lines:
for( int i = 0; i < names.length; i++) {
params[ i] = context.get( types[ i]);
}
updated lines will be:
for( int i = 0; i < types.length; i++) {
params[ i] = context.get( types[ i]);
}
|