|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2017 the original author or authors. |
| 2 | + * Copyright 2002-2018 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
66 | 66 | import org.springframework.context.weaving.LoadTimeWeaverAware;
|
67 | 67 | import org.springframework.context.weaving.LoadTimeWeaverAwareProcessor;
|
68 | 68 | import org.springframework.core.ResolvableType;
|
| 69 | +import org.springframework.core.annotation.AnnotationUtils; |
69 | 70 | import org.springframework.core.convert.ConversionService;
|
70 | 71 | import org.springframework.core.env.ConfigurableEnvironment;
|
71 | 72 | import org.springframework.core.env.Environment;
|
@@ -900,15 +901,18 @@ protected void cancelRefresh(BeansException ex) {
|
900 | 901 | }
|
901 | 902 |
|
902 | 903 | /**
|
903 |
| - * Reset Spring's common core caches, in particular the {@link ReflectionUtils}, |
904 |
| - * {@link ResolvableType} and {@link CachedIntrospectionResults} caches. |
| 904 | + * Reset Spring's common reflection metadata caches, in particular the |
| 905 | + * {@link ReflectionUtils}, {@link AnnotationUtils}, {@link ResolvableType} |
| 906 | + * and {@link CachedIntrospectionResults} caches. |
905 | 907 | * @since 4.2
|
906 | 908 | * @see ReflectionUtils#clearCache()
|
| 909 | + * @see AnnotationUtils#clearCache() |
907 | 910 | * @see ResolvableType#clearCache()
|
908 | 911 | * @see CachedIntrospectionResults#clearClassLoader(ClassLoader)
|
909 | 912 | */
|
910 | 913 | protected void resetCommonCaches() {
|
911 | 914 | ReflectionUtils.clearCache();
|
| 915 | + AnnotationUtils.clearCache(); |
912 | 916 | ResolvableType.clearCache();
|
913 | 917 | CachedIntrospectionResults.clearClassLoader(getClassLoader());
|
914 | 918 | }
|
|
0 commit comments