hg: jdk9/sandbox/jdk: 8054304: Clarify treatment of bounds in j.l.r.Annotated{WildcardType, TypeVariable}.
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Fri Jun 12 05:30:54 UTC 2015
Changeset: b91b65ccf504
Author: sadayapalam
Date: 2015-06-12 10:58 +0530
URL: http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/b91b65ccf504
8054304: Clarify treatment of bounds in j.l.r.Annotated{WildcardType,TypeVariable}.
Summary: Reflection APIs should return unannotated Object as the upper bound when there is no explicit upper bound.
Reviewed-by: darcy
! src/java.base/share/classes/java/lang/reflect/AnnotatedTypeVariable.java
! src/java.base/share/classes/java/lang/reflect/AnnotatedWildcardType.java
! src/java.base/share/classes/java/lang/reflect/TypeVariable.java
! src/java.base/share/classes/sun/reflect/annotation/AnnotatedTypeFactory.java
! test/java/lang/annotation/TypeAnnotationReflection.java
More information about the jdk9-sandbox-changes
mailing list