changeset 4645:2d10aa9d772a jdk7u1-b05

7092186: adjust package access in rmiregistry Reviewed-by: asaha, coffeys
author smarks
date Wed, 21 Sep 2011 15:37:52 -0700
parents bdd07da9ae38
children 5660157312a0 802beb388353
files src/share/classes/sun/rmi/registry/RegistryImpl.java test/sun/tools/jstatd/jstatdExternalRegistry.sh
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/rmi/registry/RegistryImpl.java	Wed Sep 07 12:55:58 2011 -0700
+++ b/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/test/sun/tools/jstatd/jstatdExternalRegistry.sh	Wed Sep 07 12:55:58 2011 -0700
+++ b/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