From a13e690566993bb95a18510a92c8c34dcfc0196a Mon Sep 17 00:00:00 2001 From: Igor Murashkin Date: Thu, 4 Feb 2016 21:04:29 -0800 Subject: api: Un-hide new reflection 1.8 APIs (cherry-picked from commit 2b11b688b841a00afe5eda8bda02409172751318) Change-Id: Ica3dba651f4a9239c39c4c90fb8478a5f6ff8b71 --- api/current.txt | 12 ++++++++++++ api/system-current.txt | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/api/current.txt b/api/current.txt index caaea05004d1..4201b6b635fe 100644 --- a/api/current.txt +++ b/api/current.txt @@ -48198,13 +48198,16 @@ package java.lang { method public static java.lang.Class forName(java.lang.String, boolean, java.lang.ClassLoader) throws java.lang.ClassNotFoundException; method public A getAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getAnnotations(); + method public T[] getAnnotationsByType(java.lang.Class); method public java.lang.String getCanonicalName(); method public java.lang.ClassLoader getClassLoader(); method public java.lang.Class[] getClasses(); method public java.lang.Class getComponentType(); method public java.lang.reflect.Constructor getConstructor(java.lang.Class...) throws java.lang.NoSuchMethodException, java.lang.SecurityException; method public java.lang.reflect.Constructor[] getConstructors() throws java.lang.SecurityException; + method public T getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public T[] getDeclaredAnnotationsByType(java.lang.Class); method public java.lang.Class[] getDeclaredClasses(); method public java.lang.reflect.Constructor getDeclaredConstructor(java.lang.Class...) throws java.lang.NoSuchMethodException, java.lang.SecurityException; method public java.lang.reflect.Constructor[] getDeclaredConstructors() throws java.lang.SecurityException; @@ -48735,7 +48738,10 @@ package java.lang { public class Package implements java.lang.reflect.AnnotatedElement { method public A getAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getAnnotations(); + method public T[] getAnnotationsByType(java.lang.Class); + method public java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public T[] getDeclaredAnnotationsByType(java.lang.Class); method public java.lang.String getImplementationTitle(); method public java.lang.String getImplementationVendor(); method public java.lang.String getImplementationVersion(); @@ -49429,7 +49435,10 @@ package java.lang.reflect { ctor protected AccessibleObject(); method public T getAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getAnnotations(); + method public T[] getAnnotationsByType(java.lang.Class); + method public java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public T[] getDeclaredAnnotationsByType(java.lang.Class); method public boolean isAccessible(); method public boolean isAnnotationPresent(java.lang.Class); method public static void setAccessible(java.lang.reflect.AccessibleObject[], boolean) throws java.lang.SecurityException; @@ -49439,7 +49448,10 @@ package java.lang.reflect { public abstract interface AnnotatedElement { method public abstract T getAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getAnnotations(); + method public abstract T[] getAnnotationsByType(java.lang.Class); + method public abstract java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public abstract T[] getDeclaredAnnotationsByType(java.lang.Class); method public abstract boolean isAnnotationPresent(java.lang.Class); } diff --git a/api/system-current.txt b/api/system-current.txt index caa734b81954..06e1ab873d2c 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -50816,13 +50816,16 @@ package java.lang { method public static java.lang.Class forName(java.lang.String, boolean, java.lang.ClassLoader) throws java.lang.ClassNotFoundException; method public A getAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getAnnotations(); + method public T[] getAnnotationsByType(java.lang.Class); method public java.lang.String getCanonicalName(); method public java.lang.ClassLoader getClassLoader(); method public java.lang.Class[] getClasses(); method public java.lang.Class getComponentType(); method public java.lang.reflect.Constructor getConstructor(java.lang.Class...) throws java.lang.NoSuchMethodException, java.lang.SecurityException; method public java.lang.reflect.Constructor[] getConstructors() throws java.lang.SecurityException; + method public T getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public T[] getDeclaredAnnotationsByType(java.lang.Class); method public java.lang.Class[] getDeclaredClasses(); method public java.lang.reflect.Constructor getDeclaredConstructor(java.lang.Class...) throws java.lang.NoSuchMethodException, java.lang.SecurityException; method public java.lang.reflect.Constructor[] getDeclaredConstructors() throws java.lang.SecurityException; @@ -51353,7 +51356,10 @@ package java.lang { public class Package implements java.lang.reflect.AnnotatedElement { method public A getAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getAnnotations(); + method public T[] getAnnotationsByType(java.lang.Class); + method public java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public T[] getDeclaredAnnotationsByType(java.lang.Class); method public java.lang.String getImplementationTitle(); method public java.lang.String getImplementationVendor(); method public java.lang.String getImplementationVersion(); @@ -52047,7 +52053,10 @@ package java.lang.reflect { ctor protected AccessibleObject(); method public T getAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getAnnotations(); + method public T[] getAnnotationsByType(java.lang.Class); + method public java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public T[] getDeclaredAnnotationsByType(java.lang.Class); method public boolean isAccessible(); method public boolean isAnnotationPresent(java.lang.Class); method public static void setAccessible(java.lang.reflect.AccessibleObject[], boolean) throws java.lang.SecurityException; @@ -52057,7 +52066,10 @@ package java.lang.reflect { public abstract interface AnnotatedElement { method public abstract T getAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getAnnotations(); + method public abstract T[] getAnnotationsByType(java.lang.Class); + method public abstract java.lang.annotation.Annotation getDeclaredAnnotation(java.lang.Class); method public abstract java.lang.annotation.Annotation[] getDeclaredAnnotations(); + method public abstract T[] getDeclaredAnnotationsByType(java.lang.Class); method public abstract boolean isAnnotationPresent(java.lang.Class); } -- cgit v1.2.3-59-g8ed1b