7092186: adjust package access in rmiregistry
authorsmarks
Wed, 21 Sep 2011 15:37:52 -0700
changeset 10914 da696f9a3be6
parent 10913 e1acf4473704
child 10915 1e20964cebf3
7092186: adjust package access in rmiregistry Reviewed-by: asaha, coffeys
jdk/src/share/classes/sun/rmi/registry/RegistryImpl.java
jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh
--- a/jdk/src/share/classes/sun/rmi/registry/RegistryImpl.java	Tue Aug 30 17:29:36 2011 -0700
+++ b/jdk/src/share/classes/sun/rmi/registry/RegistryImpl.java	Wed Sep 21 15:37:52 2011 -0700
@@ -418,6 +418,8 @@
          */
         perms.add(new SocketPermission("*", "connect,accept"));
 
+        perms.add(new RuntimePermission("accessClassInPackage.sun.*"));
+
         // add permissions required to load from codebase URL path
         LoaderHandler.addPermissionsForURLs(urls, perms, false);
 
--- a/jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh	Tue Aug 30 17:29:36 2011 -0700
+++ b/jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh	Wed Sep 21 15:37:52 2011 -0700
@@ -22,7 +22,7 @@
 #
 
 # @test
-# @bug 4990825
+# @bug 4990825 7092186
 # @run shell/timeout=90 jstatdExternalRegistry.sh
 # @summary Test functionality of 'jstatd -p<port>&' with an external RMI registry