langtools/src/share/classes/javax/lang/model/element/UnknownAnnotationValueException.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Sun designates this |
7 * published by the Free Software Foundation. Sun designates this |
23 * have any questions. |
23 * have any questions. |
24 */ |
24 */ |
25 |
25 |
26 package javax.lang.model.element; |
26 package javax.lang.model.element; |
27 |
27 |
|
28 import javax.lang.model.UnknownEntityException; |
|
29 |
28 /** |
30 /** |
29 * Indicates that an unknown kind of annotation value was encountered. |
31 * Indicates that an unknown kind of annotation value was encountered. |
30 * This can occur if the language evolves and new kinds of annotation |
32 * This can occur if the language evolves and new kinds of annotation |
31 * values can be stored in an annotation. May be thrown by an |
33 * values can be stored in an annotation. May be thrown by an |
32 * {@linkplain AnnotationValueVisitor annotation value visitor} to |
34 * {@linkplain AnnotationValueVisitor annotation value visitor} to |
37 * @author Scott Seligman |
39 * @author Scott Seligman |
38 * @author Peter von der Ahé |
40 * @author Peter von der Ahé |
39 * @see AnnotationValueVisitor#visitUnknown |
41 * @see AnnotationValueVisitor#visitUnknown |
40 * @since 1.6 |
42 * @since 1.6 |
41 */ |
43 */ |
42 public class UnknownAnnotationValueException extends RuntimeException { |
44 public class UnknownAnnotationValueException extends UnknownEntityException { |
43 |
45 |
44 private static final long serialVersionUID = 269L; |
46 private static final long serialVersionUID = 269L; |
45 |
47 |
46 private transient AnnotationValue av; |
48 private transient AnnotationValue av; |
47 private transient Object parameter; |
49 private transient Object parameter; |