--- old/src/java.base/share/classes/java/lang/reflect/Executable.java 2016-12-19 10:00:43.349622590 +0100 +++ new/src/java.base/share/classes/java/lang/reflect/Executable.java 2016-12-19 10:00:43.241622049 +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