Skip to content

Commit 70be9af

Browse files
committed
Reuse method cache from original proxy factory (aligned with 6.0.x)
See gh-30616
1 parent d4450a8 commit 70be9af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -521,6 +521,7 @@ AdvisedSupport getConfigurationOnlyCopy() {
521521
copy.copyFrom(this);
522522
copy.targetSource = EmptyTargetSource.forClass(getTargetClass(), getTargetSource().isStatic());
523523
copy.advisorChainFactory = this.advisorChainFactory;
524+
copy.methodCache = this.methodCache;
524525
copy.interfaces = new ArrayList<>(this.interfaces);
525526
copy.advisors = new ArrayList<>(this.advisors);
526527
return copy;

0 commit comments

Comments
 (0)