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

Reply via email to