Name
IncompleteAnnotationException
Synopsis
An
exception of this type indicates version skew in an annotation type.
It occurs when the Java VM attempts to read an annotation from a
class file and discovers that the annotation type has added a new
member since the class file was compiled. This means that the
annotation compiled into the class file is incomplete since it does
not define a value for all members of the annotation type. Note that
this exception does not occur if a new member with a
default
clause is added to the annotation type.
Figure 10-78. java.lang.annotation.IncompleteAnnotationException
public class IncompleteAnnotationException extends RuntimeException { // Public Constructors public IncompleteAnnotationException(Class<? extends java.lang.annotation.Annotation> annotationType, String elementName); // Public Instance Methods public Class<? extends java.lang.annotation.Annotation> annotationType( ); public String elementName( ); }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.