Browse Source

Fix memory leak on AOP Proxy class definition cache

pull/27415/head
yokotaso 4 years ago committed by Juergen Hoeller
parent
commit
0a776a76d1
  1. 4
      spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java

4
spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java

@ -521,8 +521,8 @@ public class AdvisedSupport extends ProxyConfig implements Advised { @@ -521,8 +521,8 @@ public class AdvisedSupport extends ProxyConfig implements Advised {
copy.copyFrom(this);
copy.targetSource = EmptyTargetSource.forClass(getTargetClass(), getTargetSource().isStatic());
copy.advisorChainFactory = this.advisorChainFactory;
copy.interfaces = this.interfaces;
copy.advisors = this.advisors;
copy.interfaces = new ArrayList<>(this.interfaces);
copy.advisors = new ArrayList<>(this.advisors);
return copy;
}

Loading…
Cancel
Save