Browse Source

Reuse method cache from original proxy factory (aligned with 6.0.x)

See gh-30616
pull/30762/head
Juergen Hoeller 3 years ago
parent
commit
70be9afdc6
  1. 3
      spring-aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -521,6 +521,7 @@ public class AdvisedSupport extends ProxyConfig implements Advised { @@ -521,6 +521,7 @@ public class AdvisedSupport extends ProxyConfig implements Advised {
copy.copyFrom(this);
copy.targetSource = EmptyTargetSource.forClass(getTargetClass(), getTargetSource().isStatic());
copy.advisorChainFactory = this.advisorChainFactory;
copy.methodCache = this.methodCache;
copy.interfaces = new ArrayList<>(this.interfaces);
copy.advisors = new ArrayList<>(this.advisors);
return copy;

Loading…
Cancel
Save