Support customer repeatable containers in type map
Update `AnnotationTypeMappings` so that a custom `RepeatableContainers` instances can be used. Prior to this commit, only standard repeatables were used when reading the annotations. This works in most situations, but causes regressions for some `AnnotationUtils` methods. Fixed gh-23856
This commit is contained in:
@@ -34,7 +34,6 @@ import javax.annotation.Nonnull;
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.core.Ordered;
|
||||
@@ -974,7 +973,6 @@ class AnnotationUtilsTests {
|
||||
}
|
||||
|
||||
@Test // gh-23856
|
||||
@Disabled("disabled until gh-23856 is resolved")
|
||||
void findAnnotationFindsRepeatableContainerOnComposedAnnotationMetaAnnotatedWithRepeatableAnnotationsOnMethod() throws NoSuchMethodException {
|
||||
Method method = getClass().getDeclaredMethod("methodWithComposedAnnotationMetaAnnotatedWithRepeatableAnnotations");
|
||||
MyRepeatableContainer annotation = AnnotationUtils.findAnnotation(method, MyRepeatableContainer.class);
|
||||
|
||||
Reference in New Issue
Block a user