--- a/src/java.base/share/classes/java/lang/reflect/Executable.java Wed Mar 21 10:13:14 2018 +0100
+++ b/src/java.base/share/classes/java/lang/reflect/Executable.java Wed Mar 21 10:13:49 2018 +0100
@@ -226,6 +226,10 @@
// to the untrusted code...
abstract Class<?>[] getSharedParameterTypes();
+ // returns shared array of exception types - must never give it out
+ // to the untrusted code...
+ abstract Class<?>[] getSharedExceptionTypes();
+
/**
* Returns an array of {@code Class} objects that represent the formal
* parameter types, in declaration order, of the executable