diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2013-09-04 23:18:16 +0100 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2013-09-04 23:18:16 +0100 |
commit | 0116515b19e73f3589092b47dbfe6acbccd811d4 (patch) | |
tree | 81a9ba19980d6d91d09f993eeda458ba8e3d752d /javax/lang/model/element/UnknownAnnotationValueException.java | |
parent | 95e37667f914855bc945a53e37deed80662c8d68 (diff) | |
download | classpath-0116515b19e73f3589092b47dbfe6acbccd811d4.tar.gz |
Update javax.lang.model, javax.lang.model.element and javax.lang.model.type packages to 1.7.
2013-09-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
* javax/lang/model/SourceVersion.java:
(RELEASE_7): New enum value.
* javax/lang/model/UnknownEntityException.java:
New exception class.
(UnknownEntityException(String)): New constructor.
* javax/lang/model/element/ElementKind.java:
(RESOURCE_VARIABLE): New enum value.
* javax/lang/model/element/ExecutableElement.java:
Extend mixin interface Parameterizable.
* javax/lang/model/element/PackageElement.java:
Extend mixin interface QualifiedNameable.
* javax/lang/model/element/Parameterizable.java:
New interface.
(getTypeParameters()): New method.
* javax/lang/model/element/QualifiedNameable.java:
New interface.
(getQualifiedName()): New method.
* javax/lang/model/element/TypeElement.java:
Extend mixin interfaces Parameterizable and QualifiedNameable.
* javax/lang/model/element/UnknownAnnotationValueException.java:
Extend UnknownEntityException instead of RuntimeException.
(UnknownAnnotationValueException(AnnotationValue,Object)):
Call superclass with error message.
* javax/lang/model/element/UnknownElementException.java:
Extend UnknownEntityException instead of RuntimeException.
(UnknownElementException(Element,Object)): End sentence
with a full stop, not a comma.
* javax/lang/model/type/MirroredTypeException.java:
Extend MirroredTypesException instead of RuntimeException.
(mirror): Removed.
(MirroredTypeException(TypeMIrror)): Store mirror using list
in superclass rather than a local variable.
(getTypeMirror()): Return first (and only) element from
getTypeMirrors().
* javax/lang/model/type/TypeKind.java:
(UNION): New enum value.
* javax/lang/model/type/TypeVisitor.java:
(visitUnion(UnionType,P)): New method.
* javax/lang/model/type/UnionType.java:
New interface.
(getAlternatives()): New method.
* javax/lang/model/type/UnknownTypeException.java,
Extend UnknownEntityException instead of RuntimeException.
(UnknownTypeException(TypeMirror,Object)):
Call superclass with error message.
Signed-off-by: Andrew John Hughes <gnu_andrew@member.fsf.org>
Diffstat (limited to 'javax/lang/model/element/UnknownAnnotationValueException.java')
-rw-r--r-- | javax/lang/model/element/UnknownAnnotationValueException.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/javax/lang/model/element/UnknownAnnotationValueException.java b/javax/lang/model/element/UnknownAnnotationValueException.java index dd9056b5a..1a51363c3 100644 --- a/javax/lang/model/element/UnknownAnnotationValueException.java +++ b/javax/lang/model/element/UnknownAnnotationValueException.java @@ -1,5 +1,5 @@ /* UnknownAnnotationValueException.java -- Thrown by an unknown annotation value. - Copyright (C) 2012 Free Software Foundation, Inc. + Copyright (C) 2012, 2013 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -37,6 +37,8 @@ exception statement from your version. */ package javax.lang.model.element; +import javax.lang.model.UnknownEntityException; + /** * Thrown when an unknown annotation value is encountered, * usually by a {@link AnnotationValueVisitor}. @@ -46,7 +48,7 @@ package javax.lang.model.element; * @see AnnotationValueVisitor#visitUnknown(AnnotationValue,P) */ public class UnknownAnnotationValueException - extends RuntimeException + extends UnknownEntityException { private static final long serialVersionUID = 269L; @@ -74,6 +76,7 @@ public class UnknownAnnotationValueException public UnknownAnnotationValueException(AnnotationValue annValue, Object param) { + super("The annotation value " + annValue + " is not recognised."); this.annValue = annValue; this.param = param; } |