--- old/src/java.base/share/classes/java/lang/reflect/Executable.java 2016-10-04 10:21:54.542619449 +0200 +++ new/src/java.base/share/classes/java/lang/reflect/Executable.java 2016-10-04 10:21:54.461619021 +0200 @@ -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