Overview
While looking into #36968, I noticed that a SpEL ConstructorReference may potentially reuse a cached ConstructorExecutor which is no longer valid.
Even if such scenarios may never actually occur in a production application, we should still align the caching logic in ConstructorReference with other parts of SpEL internals.
NOTE: This issue is assigned and therefore not suitable for community contributions.
Related Issues
Overview
While looking into #36968, I noticed that a SpEL
ConstructorReferencemay potentially reuse a cachedConstructorExecutorwhich is no longer valid.Even if such scenarios may never actually occur in a production application, we should still align the caching logic in
ConstructorReferencewith other parts of SpEL internals.NOTE: This issue is assigned and therefore not suitable for community contributions.
Related Issues
Indexerreuses invalid cachedPropertyAccessor#36986