spring-framework/spring-core
Phillip Webb 89b8b1a468 Prevent cache pollution by storing only the factories
Update `SpringFactoriesLoader` so that the cache stores only the
factories and not the complete loader.

Prior to this commit, if a cache entry was added with the thread
context classloader, the loader instance would be added and the
classloader stored. If the thread context classloader subsequently
changes, and a call is made to `forDefaultResourceLocation` with
`null` for the classloader, the cached entry would be used which
contains the older classloader.

Closes gh-34732
2025-07-01 11:01:48 +02:00
..
src Prevent cache pollution by storing only the factories 2025-07-01 11:01:48 +02:00
spring-core.gradle Simplify dependency management for JUnit artifacts 2025-06-29 17:42:22 +02:00