jdk/src/share/classes/java/lang/reflect/Executable.java
changeset 16058 5b8d8cec6280
parent 15659 e575dab44ff5
child 16729 3b26e313ad81
--- a/jdk/src/share/classes/java/lang/reflect/Executable.java	Tue Mar 05 19:25:35 2013 +0100
+++ b/jdk/src/share/classes/java/lang/reflect/Executable.java	Wed Mar 06 18:35:51 2013 +0100
@@ -476,6 +476,20 @@
         return declaredAnnotations;
     }
 
+    /**
+     * Returns an AnnotatedType object that represents the potentially
+     * annotated return type of the method/constructor represented by this
+     * Executable.
+     *
+     * If this Executable represents a constructor, the AnnotatedType object
+     * represents the type of the constructed object.
+     *
+     * If this Executable represents a method, the AnnotatedType object
+     * represents the use of a type to specify the return type of the method.
+     *
+     * @since 1.8
+     */
+    public abstract AnnotatedType getAnnotatedReturnType();
 
     /* Helper for subclasses of Executable.
      *