--- a/jdk/src/share/classes/java/lang/reflect/Executable.java Thu May 09 14:23:49 2013 -0700
+++ b/jdk/src/share/classes/java/lang/reflect/Executable.java Fri May 10 10:20:13 2013 +0200
@@ -510,12 +510,12 @@
*/
AnnotatedType getAnnotatedReturnType0(Type returnType) {
return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes(),
- sun.misc.SharedSecrets.getJavaLangAccess().
- getConstantPool(getDeclaringClass()),
- this,
- getDeclaringClass(),
- returnType,
- TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN_TYPE);
+ sun.misc.SharedSecrets.getJavaLangAccess().
+ getConstantPool(getDeclaringClass()),
+ this,
+ getDeclaringClass(),
+ returnType,
+ TypeAnnotation.TypeAnnotationTarget.METHOD_RETURN);
}
/**
@@ -535,12 +535,12 @@
*/
public AnnotatedType getAnnotatedReceiverType() {
return TypeAnnotationParser.buildAnnotatedType(getTypeAnnotationBytes(),
- sun.misc.SharedSecrets.getJavaLangAccess().
- getConstantPool(getDeclaringClass()),
- this,
- getDeclaringClass(),
- getDeclaringClass(),
- TypeAnnotation.TypeAnnotationTarget.METHOD_RECEIVER_TYPE);
+ sun.misc.SharedSecrets.getJavaLangAccess().
+ getConstantPool(getDeclaringClass()),
+ this,
+ getDeclaringClass(),
+ getDeclaringClass(),
+ TypeAnnotation.TypeAnnotationTarget.METHOD_RECEIVER);
}
/**
@@ -556,7 +556,13 @@
* @since 1.8
*/
public AnnotatedType[] getAnnotatedParameterTypes() {
- throw new UnsupportedOperationException("Not yet");
+ return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes(),
+ sun.misc.SharedSecrets.getJavaLangAccess().
+ getConstantPool(getDeclaringClass()),
+ this,
+ getDeclaringClass(),
+ getParameterTypes(),
+ TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER);
}
/**
@@ -573,12 +579,12 @@
*/
public AnnotatedType[] getAnnotatedExceptionTypes() {
return TypeAnnotationParser.buildAnnotatedTypes(getTypeAnnotationBytes(),
- sun.misc.SharedSecrets.getJavaLangAccess().
- getConstantPool(getDeclaringClass()),
- this,
- getDeclaringClass(),
- getGenericExceptionTypes(),
- TypeAnnotation.TypeAnnotationTarget.THROWS);
+ sun.misc.SharedSecrets.getJavaLangAccess().
+ getConstantPool(getDeclaringClass()),
+ this,
+ getDeclaringClass(),
+ getGenericExceptionTypes(),
+ TypeAnnotation.TypeAnnotationTarget.THROWS);
}
}