March 2005
Beginner to intermediate
1254 pages
104h 21m
English
IncompleteAnnotationException
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( ); }
Read now
Unlock full access