# HG changeset patch # User smarks # Date 1316644672 25200 # Node ID da696f9a3be6132b9f4f87598f9e7bdba60ebf5b # Parent e1acf44737041938f7ca5cd055f0bc6ab938c899 7092186: adjust package access in rmiregistry Reviewed-by: asaha, coffeys diff -r e1acf4473704 -r da696f9a3be6 jdk/src/share/classes/sun/rmi/registry/RegistryImpl.java --- 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); diff -r e1acf4473704 -r da696f9a3be6 jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh --- 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&' with an external RMI registry