diff --git a/api/current.txt b/api/current.txt index 2f12285c5cfc6..c1abd841feccb 100644 --- a/api/current.txt +++ b/api/current.txt @@ -50594,16 +50594,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; @@ -50634,7 +50631,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); @@ -51177,10 +51173,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(); @@ -51190,7 +51186,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); @@ -51859,12 +51854,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; } @@ -51872,11 +51863,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 { @@ -51939,6 +51930,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 69d223ad4d6c7..cbe10e2494976 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -53900,16 +53900,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; @@ -53940,7 +53937,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); @@ -54483,10 +54479,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(); @@ -54496,7 +54492,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); @@ -55165,12 +55160,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; } @@ -55178,11 +55169,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 { @@ -55245,6 +55236,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 ebbb06cfee87d..aeff3db86ac5d 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -50674,16 +50674,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; @@ -50714,7 +50711,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); @@ -51257,10 +51253,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(); @@ -51270,7 +51266,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); @@ -51939,12 +51934,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; } @@ -51952,11 +51943,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 { @@ -52019,6 +52010,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;