AbstractApplicationContext clears ReflectionUtils cache as well

Issue: SPR-13783
This commit is contained in:
Juergen Hoeller
2015-12-09 19:25:27 +01:00
parent 78dad4cfc3
commit fdc14a16ee
2 changed files with 14 additions and 2 deletions

View File

@@ -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.