Reuse method cache from original proxy factory (aligned with 6.0.x)
See gh-30616
This commit is contained in:
@@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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 {
|
|||||||
copy.copyFrom(this);
|
copy.copyFrom(this);
|
||||||
copy.targetSource = EmptyTargetSource.forClass(getTargetClass(), getTargetSource().isStatic());
|
copy.targetSource = EmptyTargetSource.forClass(getTargetClass(), getTargetSource().isStatic());
|
||||||
copy.advisorChainFactory = this.advisorChainFactory;
|
copy.advisorChainFactory = this.advisorChainFactory;
|
||||||
|
copy.methodCache = this.methodCache;
|
||||||
copy.interfaces = new ArrayList<>(this.interfaces);
|
copy.interfaces = new ArrayList<>(this.interfaces);
|
||||||
copy.advisors = new ArrayList<>(this.advisors);
|
copy.advisors = new ArrayList<>(this.advisors);
|
||||||
return copy;
|
return copy;
|
||||||
|
|||||||
Reference in New Issue
Block a user