8006344: Broken javadoc link in javax.lang.model.element.Element

Chris Hegarty chris.hegarty at oracle.com
Tue Jan 15 17:59:13 UTC 2013


Minor oversight in the changes from 7193719: "Support repeating 
annotations in javax.lang.model".

~/repos/jdk8/tl/adder/build/solaris-i586/impsrc/javax/lang/model/element/Element.java:199: 
warning - Tag @see: can't find getAnnotation() in 
javax.lang.model.element.Element

I only noticed when building javadocs for another issue, thankfully we 
don't have many warnings here ;-)


diff -r d54b4a091450 src/share/classes/javax/lang/model/element/Element.java
--- a/src/share/classes/javax/lang/model/element/Element.java   Mon Jan 
14 14:17:25 2013 -0800
+++ b/src/share/classes/javax/lang/model/element/Element.java   Tue Jan 
15 17:55:17 2013 +0000
@@ -188,7 +188,7 @@ public interface Element {
       *         type if present on this element, else an empty array
       *
       * @see #getAnnotationMirrors()
-     * @see #getAnnotation()
+     * @see #getAnnotation(java.lang.Class)
       * @see java.lang.reflect.AnnotatedElement#getAnnotations
       * @see EnumConstantNotPresentException
       * @see AnnotationTypeMismatchException

-Chris.



More information about the core-libs-dev mailing list