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(); }