8176815: Remove StackFramePermission and use RuntimePermission for stack walking
authormchung
Wed, 15 Mar 2017 18:07:31 -0700
changeset 44276 ffb853d2c414
parent 44165 6caed61da28f
child 44277 2738ac02c964
8176815: Remove StackFramePermission and use RuntimePermission for stack walking Reviewed-by: alanb, bchristi
corba/src/java.corba/share/classes/sun/corba/Bridge.java
--- a/corba/src/java.corba/share/classes/sun/corba/Bridge.java	Mon Mar 13 14:01:49 2017 +0100
+++ b/corba/src/java.corba/share/classes/sun/corba/Bridge.java	Wed Mar 15 18:07:31 2017 -0700
@@ -59,10 +59,10 @@
  * </ul>
  * The code that calls Bridge.get() must have the following Permissions:
  * <ul>
- * <li>RuntimePermission "reflectionFactoryAccess"</li>
  * <li>BridgePermission "getBridge"</li>
  * <li>ReflectPermission "suppressAccessChecks"</li>
- * <li>StackFramePermission "retainClassReference"</li>
+ * <li>RuntimePermission "getStackWalkerWithClassReference"</li>
+ * <li>RuntimePermission "reflectionFactoryAccess"</li>
  * </ul>
  * <p>
  * All of these permissions are required to obtain and correctly initialize
@@ -105,10 +105,10 @@
     /** Fetch the Bridge singleton.  This requires the following
      * permissions:
      * <ul>
-     * <li>RuntimePermission "reflectionFactoryAccess"</li>
      * <li>BridgePermission "getBridge"</li>
      * <li>ReflectPermission "suppressAccessChecks"</li>
-     * <li>StackFramePermission "retainClassReference"</li>
+     * <li>RuntimePermission "getStackWalkerWithClassReference"</li>
+     * <li>RuntimePermission "reflectionFactoryAccess"</li>
      * </ul>
      * @return The singleton instance of the Bridge class
      * @throws SecurityException if the caller does not have the