diff -r b778c8cf514d -r 5f83f2054eca jdk/src/java.base/share/classes/java/lang/reflect/Executable.java --- a/jdk/src/java.base/share/classes/java/lang/reflect/Executable.java Wed Jan 04 17:20:41 2017 -0800 +++ b/jdk/src/java.base/share/classes/java/lang/reflect/Executable.java Thu Jan 05 08:51:03 2017 +0100 @@ -222,6 +222,10 @@ */ public abstract TypeVariable[] getTypeParameters(); + // returns shared array of parameter types - must never give it out + // to the untrusted code... + abstract Class[] getSharedParameterTypes(); + /** * Returns an array of {@code Class} objects that represent the formal * parameter types, in declaration order, of the executable