langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/AnnoConstruct.java
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/AnnoConstruct.java Tue Aug 26 12:45:28 2014 +0100
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/AnnoConstruct.java Wed Aug 27 07:44:00 2014 +0200
@@ -32,6 +32,8 @@
import javax.lang.model.AnnotatedConstruct;
import com.sun.tools.javac.model.AnnotationProxyMaker;
+import com.sun.tools.javac.util.DefinedBy;
+import com.sun.tools.javac.util.DefinedBy.Api;
import com.sun.tools.javac.util.List;
import com.sun.tools.javac.util.ListBuffer;
@@ -50,7 +52,7 @@
// Override to enforce a narrower return type.
- @Override
+ @Override @DefinedBy(Api.LANGUAGE_MODEL)
public abstract List<? extends Attribute.Compound> getAnnotationMirrors();
@@ -74,6 +76,7 @@
// This method is part of the javax.lang.model API, do not use this in javac code.
+ @DefinedBy(Api.LANGUAGE_MODEL)
public <A extends Annotation> A[] getAnnotationsByType(Class<A> annoType) {
if (!annoType.isAnnotation())
@@ -170,6 +173,7 @@
}
// This method is part of the javax.lang.model API, do not use this in javac code.
+ @DefinedBy(Api.LANGUAGE_MODEL)
public <A extends Annotation> A getAnnotation(Class<A> annoType) {
if (!annoType.isAnnotation())