jdk/src/java.base/share/classes/java/lang/reflect/Executable.java
changeset 42997 5f83f2054eca
parent 42948 1f4754f075f2
child 45332 9c9e51c44638
--- 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