From 3dfc6b7512f4c1aca89e910df43a60bead790bfa Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Thu, 10 Jan 2013 21:12:27 -0800 Subject: [PATCH] 8006062: Add @Repeatable to repeating annotations regression tests in JDK repo Reviewed-by: jjg --- .../annotation/repeatingAnnotations/subpackage/Containee.java | 1 + .../repeatingAnnotations/subpackage/InheritedContainee.java | 1 + 2 files changed, 2 insertions(+) diff --git a/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/Containee.java b/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/Containee.java index 93fd36b6e73..c977b2e5c2d 100644 --- a/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/Containee.java +++ b/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/Containee.java @@ -27,6 +27,7 @@ import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) @ContainedBy(Container.class) +@Repeatable(Container.class) public @interface Containee { int value(); } diff --git a/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/InheritedContainee.java b/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/InheritedContainee.java index be68836ef1d..080d12ce3f5 100644 --- a/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/InheritedContainee.java +++ b/jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/InheritedContainee.java @@ -28,6 +28,7 @@ import java.lang.annotation.*; @Inherited @Retention(RetentionPolicy.RUNTIME) @ContainedBy(InheritedContainer.class) +@Repeatable(InheritedContainer.class) public @interface InheritedContainee { int value(); }