hg: jdk9/dev/jdk: 8054304: Clarify treatment of bounds in j.l.r.Annotated{WildcardType, TypeVariable}.

srikanth.adayapalam at oracle.com srikanth.adayapalam at oracle.com
Fri Jun 12 05:29:53 UTC 2015


Changeset: b91b65ccf504
Author:    sadayapalam
Date:      2015-06-12 10:58 +0530
URL:       http://hg.openjdk.java.net/jdk9/dev/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-dev-changes mailing list