Name

AnnotationTypeMismatchException

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

java.lang.annotation.AnnotationTypeMismatchException

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

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.