< prev index next >
test/java/rmi/activation/Activatable/restartService/RestartService.java
Print this page
rev 15876 : 8085192: java/rmi/activation/Activatable tests fail intermittently due to "Port already in use"
Reviewed-by: rriggs, mli
*** 30,40 ****
* @library ../../../testlibrary
* @modules java.rmi/sun.rmi.registry
* java.rmi/sun.rmi.server
* java.rmi/sun.rmi.transport
* java.rmi/sun.rmi.transport.tcp
! * @build TestLibrary RMID ActivationLibrary ActivateMe RestartService_Stub
* @run main/othervm/policy=security.policy/timeout=240 RestartService
*/
import java.io.*;
import java.rmi.*;
--- 30,41 ----
* @library ../../../testlibrary
* @modules java.rmi/sun.rmi.registry
* java.rmi/sun.rmi.server
* java.rmi/sun.rmi.transport
* java.rmi/sun.rmi.transport.tcp
! * java.base/sun.nio.ch
! * @build TestLibrary RMID RMIDSelectorProvider ActivationLibrary ActivateMe RestartService_Stub
* @run main/othervm/policy=security.policy/timeout=240 RestartService
*/
import java.io.*;
import java.rmi.*;
*** 127,137 ****
RMID rmid = null;
RestartService unicastObj = null;
try {
RMID.removeLog();
! rmid = RMID.createRMID();
rmid.start();
/* Cause activation groups to have a security policy that will
* allow security managers to be downloaded and installed
*/
--- 128,138 ----
RMID rmid = null;
RestartService unicastObj = null;
try {
RMID.removeLog();
! rmid = RMID.createRMIDOnEphemeralPort();
rmid.start();
/* Cause activation groups to have a security policy that will
* allow security managers to be downloaded and installed
*/
< prev index next >