Pruning of outdated JDK 6/7 references (plus related polishing)
This commit is contained in:
@@ -145,12 +145,7 @@ public class AnnotationUtilsTests {
|
||||
assertNull(getAnnotation(bridgeMethod, Order.class));
|
||||
assertNotNull(findAnnotation(bridgeMethod, Order.class));
|
||||
|
||||
// As of OpenJDK 8 b99, invoking getAnnotation() on a bridge method actually finds
|
||||
// an annotation on its 'bridged' method. This differs from the previous behavior
|
||||
// of JDK 5 through 7 and from the current behavior of the Eclipse compiler;
|
||||
// however, we need to ensure that the tests pass in the Gradle build. So we
|
||||
// comment out the following assertion.
|
||||
// assertNull(bridgeMethod.getAnnotation(Transactional.class));
|
||||
assertNotNull(bridgeMethod.getAnnotation(Transactional.class));
|
||||
assertNotNull(getAnnotation(bridgeMethod, Transactional.class));
|
||||
assertNotNull(findAnnotation(bridgeMethod, Transactional.class));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user