Browse Source

Document disabled test for hybrid annotation attribute overrides

This commit documents the @Ignore'd test to explain that Spring does not
support a hybrid approach for annotation attribute overrides with
transitive implicit aliases.

Issue: SPR-13554
pull/1019/merge
Sam Brannen 9 years ago
parent
commit
6826bdd111
  1. 14
      spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java

14
spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java

@ -308,7 +308,15 @@ public class AnnotatedElementUtilsTests { @@ -308,7 +308,15 @@ public class AnnotatedElementUtilsTests {
assertTrue(isAnnotated(element, name));
}
@Ignore("Disabled until SPR-13554 is addressed")
/**
* This test should never pass, simply because Spring does not support a hybrid
* approach for annotation attribute overrides with transitive implicit aliases.
* See SPR-13554 for details.
* <p>Furthermore, if you choose to execute this test, it can fail for either
* the first test class or the second one (with different exceptions), depending
* on the order in which the JVM returns the attribute methods via reflection.
*/
@Ignore("Permanently disabled but left in place for illustrative purposes")
@Test
public void getMergedAnnotationAttributesWithHalfConventionBasedAndHalfAliasedComposedAnnotation() {
for (Class<?> clazz : asList(HalfConventionBasedAndHalfAliasedComposedContextConfigClassV1.class,
@ -860,6 +868,10 @@ public class AnnotatedElementUtilsTests { @@ -860,6 +868,10 @@ public class AnnotatedElementUtilsTests {
String[] locations();
}
/**
* This hybrid approach for annotation attribute overrides with transitive implicit
* aliases is unsupported. See SPR-13554 for details.
*/
@ContextConfig
@Retention(RetentionPolicy.RUNTIME)
@interface HalfConventionBasedAndHalfAliasedComposedContextConfig {

Loading…
Cancel
Save