AbstractApplicationContext clears ReflectionUtils cache as well
Issue: SPR-13783
This commit is contained in:
@@ -739,6 +739,15 @@ public abstract class ReflectionUtils {
|
||||
}, COPYABLE_FIELDS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the internal method/field cache.
|
||||
* @since 4.2.4
|
||||
*/
|
||||
public static void clearCache() {
|
||||
declaredMethodsCache.clear();
|
||||
declaredFieldsCache.clear();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Action to take on each method.
|
||||
|
||||
Reference in New Issue
Block a user