jdk/src/share/classes/java/lang/annotation/InvalidContainerAnnotationError.java
changeset 15514 81f4aa2dd9e3
parent 14676 985410ec95e3
equal deleted inserted replaced
15513:64b67b85e2a2 15514:81f4aa2dd9e3
     1 /*
     1 /*
     2  * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    25 package java.lang.annotation;
    25 package java.lang.annotation;
    26 
    26 
    27 import java.util.Objects;
    27 import java.util.Objects;
    28 
    28 
    29 /**
    29 /**
    30  * Thrown to indicate that an annotation type whose declaration is
    30  * Thrown to indicate that an annotation type expected to act as a
    31  * (meta-)annotated with a {@link ContainerFor} annotation is not, in
    31  * container for another annotation type by virture of an @Repeatable
    32  * fact, the <em>containing annotation type of the type named by {@link
    32  * annotation, does not act as a container.
    33  * ContainerFor}</em>.
       
    34  *
    33  *
    35  * @see   java.lang.reflect.AnnotatedElement
    34  * @see   java.lang.reflect.AnnotatedElement
    36  * @since 1.8
    35  * @since 1.8
    37  * @jls   9.6 Annotation Types
    36  * @jls   9.6 Annotation Types
    38  * @jls   9.7 Annotations
    37  * @jls   9.7 Annotations