changeset 13197:733191a1b361

8198963: Fix new rmi property name Reviewed-by: smarks
author robm
date Sun, 04 Mar 2018 16:33:27 +0000
parents 081c120f1177
children 262719c0b7bf
files src/share/classes/sun/rmi/transport/tcp/TCPTransport.java test/sun/rmi/transport/proxy/EagerHttpFallback.java test/sun/rmi/transport/tcp/DisableRMIOverHttp/DisableRMIOverHTTPTest.java test/sun/rmi/transport/tcp/blockAccept/BlockAcceptTest.java
diffstat 4 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java	Fri Mar 02 01:03:12 2018 -0800
+++ b/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java	Sun Mar 04 16:33:27 2018 +0000
@@ -121,7 +121,7 @@
 
     private static final boolean disableIncomingHttp =
         java.security.AccessController.doPrivileged(
-            new GetPropertyAction("java.rmi.server.disableIncomingHttp", "true"))
+            new GetPropertyAction("sun.rmi.server.disableIncomingHttp", "true"))
                 .equalsIgnoreCase("true");
 
     /** total connections handled */
--- a/test/sun/rmi/transport/proxy/EagerHttpFallback.java	Fri Mar 02 01:03:12 2018 -0800
+++ b/test/sun/rmi/transport/proxy/EagerHttpFallback.java	Sun Mar 04 16:33:27 2018 +0000
@@ -28,7 +28,7 @@
  *
  * @library ../../../../java/rmi/testlibrary
  * @build TestLibrary
- * @run main/othervm -Djava.rmi.server.disableIncomingHttp=false EagerHttpFallback
+ * @run main/othervm -Dsun.rmi.server.disableIncomingHttp=false EagerHttpFallback
  */
 
 import java.rmi.*;
@@ -46,8 +46,6 @@
                            "true");
         LocateRegistry.createRegistry(FALLBACK_PORT);
 
-        System.err.println("1-DISABLED: " + System.getProperty("java.rmi.server.disableIncomingHttp"));
-
         /*
          * The call below should trigger a ConnectException in the
          * RMIMasterSocketFactory when it attempts a direct connection to
--- a/test/sun/rmi/transport/tcp/DisableRMIOverHttp/DisableRMIOverHTTPTest.java	Fri Mar 02 01:03:12 2018 -0800
+++ b/test/sun/rmi/transport/tcp/DisableRMIOverHttp/DisableRMIOverHTTPTest.java	Sun Mar 04 16:33:27 2018 +0000
@@ -29,7 +29,7 @@
  * @library ../../../../../java/rmi/testlibrary
  * @build TestIface TestImpl
  * @run main/othervm/timeout=60 DisableRMIOverHTTPTest
- * @run main/othervm/timeout=60 -Djava.rmi.server.disableIncomingHttp=false DisableRMIOverHTTPTest
+ * @run main/othervm/timeout=60 -Dsun.rmi.server.disableIncomingHttp=false DisableRMIOverHTTPTest
  */
 
 /*
@@ -60,7 +60,7 @@
         boolean incomingHttpDisabled =
                 Boolean.valueOf(
                     System.getProperty(
-                            "java.rmi.server.disableIncomingHttp", "true")
+                            "sun.rmi.server.disableIncomingHttp", "true")
                         .equalsIgnoreCase("true"));
 
         // Set the socket factory.
--- a/test/sun/rmi/transport/tcp/blockAccept/BlockAcceptTest.java	Fri Mar 02 01:03:12 2018 -0800
+++ b/test/sun/rmi/transport/tcp/blockAccept/BlockAcceptTest.java	Sun Mar 04 16:33:27 2018 +0000
@@ -29,7 +29,7 @@
  *
  * @library ../../../../../java/rmi/testlibrary
  * @build TestIface TestImpl TestImpl_Stub
- * @run main/othervm/policy=security.policy/timeout=60 -Djava.rmi.server.disableIncomingHttp=false BlockAcceptTest
+ * @run main/othervm/policy=security.policy/timeout=60 -Dsun.rmi.server.disableIncomingHttp=false BlockAcceptTest
  */
 
 /* This test attempts to stymie the RMI accept loop.  The accept loop in