mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 20:59:07 +00:00
MethodReference accesses cached executor in a thread-safe manner
Issue: SPR-12269
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ public class MethodReference extends SpelNodeImpl {
|
||||
|
||||
private void updateExitTypeDescriptor() {
|
||||
CachedMethodExecutor executorToCheck = this.cachedExecutor;
|
||||
if (executorToCheck.get() instanceof ReflectiveMethodExecutor) {
|
||||
if (executorToCheck != null && executorToCheck.get() instanceof ReflectiveMethodExecutor) {
|
||||
Method method = ((ReflectiveMethodExecutor) executorToCheck.get()).getMethod();
|
||||
this.exitTypeDescriptor = CodeFlow.toDescriptor(method.getReturnType());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user