IncompleteAnnotationException


IncompleteAnnotationException java.lang.annotation

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



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net