RFR of JDK-7195382: TEST_BUG: java/rmi/activation/CommandEnvironment/SetChildEnv.java can fail
huaming.li at oracle.com
Thu Dec 8 03:07:26 UTC 2016
Would you please review the below patch?
* Use createRMIDOnEphemeralPort to avoid "port in use" exception.
* Because createRMIDOnEphemeralPort will choose different ports for rmid
for multiple runs, it will fail subsequent ActivationGroup except of
first run, so have to run 4 test cases in different JVM by putting them
in rather in separate "@run main/othervm".
* Put rmid.cleanup() in finally block to avoid orphan process bug.
* delete dead code.
More information about the core-libs-dev