Link to Eclipse bug for annotations on bridge methods

master
Sam Brannen 6 years ago
parent b3ca2d50a2
commit 8ea913392c
  1. 10
      spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java

@ -150,9 +150,13 @@ public class AnnotationUtilsTests {
.anyMatch(element -> element.getClassName().startsWith("org.eclipse.jdt"));
// As of JDK 8, invoking getAnnotation() on a bridge method actually finds an
// annotation on its 'bridged' method; however, the Eclipse compiler still does
// not properly support this. Thus, we effectively ignore the following assertion
// if the test is currently executing within the Eclipse IDE.
// annotation on its 'bridged' method [1]; however, the Eclipse compiler will not
// support this until Eclipse 4.9 [2]. Thus, we effectively ignore the following
// assertion if the test is currently executing within the Eclipse IDE.
//
// [1] https://bugs.openjdk.java.net/browse/JDK-6695379
// [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=495396
//
if (!runningInEclipse) {
assertNotNull(bridgeMethod.getAnnotation(Transactional.class));
}

Loading…
Cancel
Save