From 30472f74881976a347009378d95faccc9261e2a8 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Wed, 20 Apr 2016 16:34:36 +0100 Subject: [PATCH] Track libcore change be1608980825868eb1c70fab6eb86fe06bd304ce Bug: 27704598 Change-Id: I5cb900c7b48bc7b48ed0ea1110ff834e1d316de7 (cherry picked from commit d7c695d25b1b75657bcbba6b61d62931a1b27d09) (cherry picked from commit a69302e9e2ebc04447b16657a4e706fb1241ee6b) --- api/current.txt | 24 ++++++++---------------- api/system-current.txt | 24 ++++++++---------------- api/test-current.txt | 24 ++++++++---------------- 3 files changed, 24 insertions(+), 48 deletions(-) diff --git a/api/current.txt b/api/current.txt index a04ecfb26d13..61345fde1823 100644 --- a/api/current.txt +++ b/api/current.txt @@ -50589,16 +50589,13 @@ 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; @@ -50629,7 +50626,6 @@ package java.lang { method public java.lang.Class getSuperclass(); method public synchronized java.lang.reflect.TypeVariable>[] getTypeParameters(); method public boolean isAnnotation(); - method public boolean isAnnotationPresent(java.lang.Class); method public boolean isAnonymousClass(); method public boolean isArray(); method public boolean isAssignableFrom(java.lang.Class); @@ -51172,10 +51168,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 A[] getAnnotationsByType(java.lang.Class); + method public A getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); - method public T[] getDeclaredAnnotationsByType(java.lang.Class); + method public A[] getDeclaredAnnotationsByType(java.lang.Class); method public java.lang.String getImplementationTitle(); method public java.lang.String getImplementationVendor(); method public java.lang.String getImplementationVersion(); @@ -51185,7 +51181,6 @@ package java.lang { method public java.lang.String getSpecificationTitle(); method public java.lang.String getSpecificationVendor(); method public java.lang.String getSpecificationVersion(); - method public boolean isAnnotationPresent(java.lang.Class); method public boolean isCompatibleWith(java.lang.String) throws java.lang.NumberFormatException; method public boolean isSealed(); method public boolean isSealed(java.net.URL); @@ -51854,12 +51849,8 @@ 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; method public void setAccessible(boolean) throws java.lang.SecurityException; } @@ -51867,11 +51858,11 @@ 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 default T[] getAnnotationsByType(java.lang.Class); + method public default 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); + method public default T[] getDeclaredAnnotationsByType(java.lang.Class); + method public default boolean isAnnotationPresent(java.lang.Class); } public final class Array { @@ -51934,6 +51925,7 @@ package java.lang.reflect { method public java.lang.String getName(); method public short getShort(java.lang.Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; method public java.lang.Class getType(); + method public boolean isAnnotationPresent(java.lang.Class); method public boolean isEnumConstant(); method public boolean isSynthetic(); method public void set(java.lang.Object, java.lang.Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; diff --git a/api/system-current.txt b/api/system-current.txt index dd2f18b0b9f6..d44e15708dc3 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -53895,16 +53895,13 @@ 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; @@ -53935,7 +53932,6 @@ package java.lang { method public java.lang.Class getSuperclass(); method public synchronized java.lang.reflect.TypeVariable>[] getTypeParameters(); method public boolean isAnnotation(); - method public boolean isAnnotationPresent(java.lang.Class); method public boolean isAnonymousClass(); method public boolean isArray(); method public boolean isAssignableFrom(java.lang.Class); @@ -54478,10 +54474,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 A[] getAnnotationsByType(java.lang.Class); + method public A getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); - method public T[] getDeclaredAnnotationsByType(java.lang.Class); + method public A[] getDeclaredAnnotationsByType(java.lang.Class); method public java.lang.String getImplementationTitle(); method public java.lang.String getImplementationVendor(); method public java.lang.String getImplementationVersion(); @@ -54491,7 +54487,6 @@ package java.lang { method public java.lang.String getSpecificationTitle(); method public java.lang.String getSpecificationVendor(); method public java.lang.String getSpecificationVersion(); - method public boolean isAnnotationPresent(java.lang.Class); method public boolean isCompatibleWith(java.lang.String) throws java.lang.NumberFormatException; method public boolean isSealed(); method public boolean isSealed(java.net.URL); @@ -55160,12 +55155,8 @@ 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; method public void setAccessible(boolean) throws java.lang.SecurityException; } @@ -55173,11 +55164,11 @@ 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 default T[] getAnnotationsByType(java.lang.Class); + method public default 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); + method public default T[] getDeclaredAnnotationsByType(java.lang.Class); + method public default boolean isAnnotationPresent(java.lang.Class); } public final class Array { @@ -55240,6 +55231,7 @@ package java.lang.reflect { method public java.lang.String getName(); method public short getShort(java.lang.Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; method public java.lang.Class getType(); + method public boolean isAnnotationPresent(java.lang.Class); method public boolean isEnumConstant(); method public boolean isSynthetic(); method public void set(java.lang.Object, java.lang.Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; diff --git a/api/test-current.txt b/api/test-current.txt index d056f7d57fce..40209933e7d0 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -50667,16 +50667,13 @@ 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; @@ -50707,7 +50704,6 @@ package java.lang { method public java.lang.Class getSuperclass(); method public synchronized java.lang.reflect.TypeVariable>[] getTypeParameters(); method public boolean isAnnotation(); - method public boolean isAnnotationPresent(java.lang.Class); method public boolean isAnonymousClass(); method public boolean isArray(); method public boolean isAssignableFrom(java.lang.Class); @@ -51250,10 +51246,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 A[] getAnnotationsByType(java.lang.Class); + method public A getDeclaredAnnotation(java.lang.Class); method public java.lang.annotation.Annotation[] getDeclaredAnnotations(); - method public T[] getDeclaredAnnotationsByType(java.lang.Class); + method public A[] getDeclaredAnnotationsByType(java.lang.Class); method public java.lang.String getImplementationTitle(); method public java.lang.String getImplementationVendor(); method public java.lang.String getImplementationVersion(); @@ -51263,7 +51259,6 @@ package java.lang { method public java.lang.String getSpecificationTitle(); method public java.lang.String getSpecificationVendor(); method public java.lang.String getSpecificationVersion(); - method public boolean isAnnotationPresent(java.lang.Class); method public boolean isCompatibleWith(java.lang.String) throws java.lang.NumberFormatException; method public boolean isSealed(); method public boolean isSealed(java.net.URL); @@ -51932,12 +51927,8 @@ 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; method public void setAccessible(boolean) throws java.lang.SecurityException; } @@ -51945,11 +51936,11 @@ 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 default T[] getAnnotationsByType(java.lang.Class); + method public default 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); + method public default T[] getDeclaredAnnotationsByType(java.lang.Class); + method public default boolean isAnnotationPresent(java.lang.Class); } public final class Array { @@ -52012,6 +52003,7 @@ package java.lang.reflect { method public java.lang.String getName(); method public short getShort(java.lang.Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; method public java.lang.Class getType(); + method public boolean isAnnotationPresent(java.lang.Class); method public boolean isEnumConstant(); method public boolean isSynthetic(); method public void set(java.lang.Object, java.lang.Object) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; -- 2.11.0