src/share/classes/java/lang/reflect/Executable.java

Print this page
rev 10040 : 8039916: AnnotatedType.getType() of a Executable parameters may return wrong type
Reviewed-by: duke

*** 631,641 **** return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), ! getParameterTypes(), TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER); } /** * Returns an array of {@code AnnotatedType} objects that represent the use --- 631,641 ---- return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes0(), sun.misc.SharedSecrets.getJavaLangAccess(). getConstantPool(getDeclaringClass()), this, getDeclaringClass(), ! getGenericParameterTypes(), TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER); } /** * Returns an array of {@code AnnotatedType} objects that represent the use