提交 5990cca2 编写于 作者: S smarks

7092186: adjust package access in rmiregistry

Reviewed-by: asaha, coffeys
上级 8cd943b6
...@@ -418,6 +418,8 @@ public class RegistryImpl extends java.rmi.server.RemoteServer ...@@ -418,6 +418,8 @@ public class RegistryImpl extends java.rmi.server.RemoteServer
*/ */
perms.add(new SocketPermission("*", "connect,accept")); perms.add(new SocketPermission("*", "connect,accept"));
perms.add(new RuntimePermission("accessClassInPackage.sun.*"));
// add permissions required to load from codebase URL path // add permissions required to load from codebase URL path
LoaderHandler.addPermissionsForURLs(urls, perms, false); LoaderHandler.addPermissionsForURLs(urls, perms, false);
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# #
# @test # @test
# @bug 4990825 # @bug 4990825 7092186
# @run shell/timeout=90 jstatdExternalRegistry.sh # @run shell/timeout=90 jstatdExternalRegistry.sh
# @summary Test functionality of 'jstatd -p<port>&' with an external RMI registry # @summary Test functionality of 'jstatd -p<port>&' with an external RMI registry
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册