Provider injection into prototype beans works for method parameters as well

Issue: SPR-9630
This commit is contained in:
Juergen Hoeller
2012-10-11 19:40:13 +02:00
committed by unknown
parent 3f1fb4eeea
commit 65743936ff
2 changed files with 99 additions and 31 deletions

View File

@@ -126,7 +126,7 @@ public class DependencyDescriptor implements Serializable {
* @param original the original descriptor to create a copy from
*/
public DependencyDescriptor(DependencyDescriptor original) {
this.methodParameter = original.methodParameter;
this.methodParameter = (original.methodParameter != null ? new MethodParameter(original.methodParameter) : null);
this.field = original.field;
this.declaringClass = original.declaringClass;
this.methodName = original.methodName;