src/share/classes/javax/lang/model/element/UnknownAnnotationValueException.java
Print this page
rev 212 : 6794071: Provide exception superclass for UnknownFooExceptions
Reviewed-by: jjg
*** 1,7 ****
/*
! * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
--- 1,7 ----
/*
! * Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
*** 23,32 ****
--- 23,34 ----
* have any questions.
*/
package javax.lang.model.element;
+ import javax.lang.model.UnknownEntityException;
+
/**
* Indicates that an unknown kind of annotation value was encountered.
* This can occur if the language evolves and new kinds of annotation
* values can be stored in an annotation. May be thrown by an
* {@linkplain AnnotationValueVisitor annotation value visitor} to
*** 37,47 ****
* @author Scott Seligman
* @author Peter von der Ahé
* @see AnnotationValueVisitor#visitUnknown
* @since 1.6
*/
! public class UnknownAnnotationValueException extends RuntimeException {
private static final long serialVersionUID = 269L;
private transient AnnotationValue av;
private transient Object parameter;
--- 39,49 ----
* @author Scott Seligman
* @author Peter von der Ahé
* @see AnnotationValueVisitor#visitUnknown
* @since 1.6
*/
! public class UnknownAnnotationValueException extends UnknownEntityException {
private static final long serialVersionUID = 269L;
private transient AnnotationValue av;
private transient Object parameter;