Fix memory leak on AOP Proxy class definition cache

This commit is contained in:
yokotaso
2021-09-09 13:58:05 +09:00
committed by Juergen Hoeller
parent 52b03e3326
commit 0a776a76d1

View File

@@ -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;
}