RFR [9]: javax/management/remote/mandatory/connection/RMIConnector_NPETest.java fails to compile

Chris Hegarty chris.hegarty at oracle.com
Wed Dec 3 14:40:43 UTC 2014


The changes in 8035000 [1] changed some common rmi testlibrary classes, 
RMID.java for one, and this test no longer compiles.

The test should call RMID destroy() instead of shutdown(..).

../chhegar/s/jdk/test/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java:64: 
error: method shutdown in class RMID cannot be applied to given types;
             rmid.shutdown(rmidPort);
                 ^
   required: no arguments
   found: int
   reason: actual and formal argument lists differ in length
1 error

diff --git 
a/test/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java 
b/test/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java
--- 
a/test/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java
+++ 
b/test/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java
@@ -61,7 +61,7 @@
                      // ignore
                  }
              }
-            rmid.shutdown(rmidPort);
+            rmid.destroy();
          }

-Chris.

[1] https://bugs.openjdk.java.net/browse/JDK-8035000


More information about the serviceability-dev mailing list