Team LiB
Previous Section Next Section

AnnotationTypeMismatchExceptionjava.lang.annotation

Java 5.0serializable unchecked

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 type of an annotation member has changed since the class file (and the annotation it contains) was compiled.

Figure 10-75. java.lang.annotation.AnnotationTypeMismatchException


public class AnnotationTypeMismatchException extends RuntimeException {
// Public Constructors
     public AnnotationTypeMismatchException(java.lang.reflect.Method element, String foundType);  
// Public Instance Methods
     public java.lang.reflect.Method element( );  
     public String foundType( );  
}

    Team LiB
    Previous Section Next Section