changeset 533:cdc68d7a17dd

7092186: adjust package access in rmiregistry Reviewed-by: smarks
author coffeys
date Thu, 06 Oct 2011 09:54:10 +0100
parents 0c65618b5ae1
children b58af78ac79c b34a3ed0c8f2
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 Oct 05 19:54:52 2011 +0100
+++ b/src/share/classes/sun/rmi/registry/RegistryImpl.java	Thu Oct 06 09:54:10 2011 +0100
@@ -417,6 +417,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 Oct 05 19:54:52 2011 +0100
+++ b/test/sun/tools/jstatd/jstatdExternalRegistry.sh	Thu Oct 06 09:54:10 2011 +0100
@@ -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