Duplicate :
|
After the removal of RMI Activation (JEP 407, https://openjdk.java.net/jeps/407), the test javax/management/remote/mandatory/connection/RMIConnector_NPETest.java fails. The messages in the log are: ========== #section:build ----------messages:(2/91)---------- command: build TestLibrary RMID reason: User specified action: run build TestLibrary RMID result: Not run. Test running... test result: Error. can't find RMID in test directory or libraries ========== The reason is that the test creates an instance of the RMID daemon, which is part of RMI Activation, and then it connects to it. RMID was removed as part of the RMI Activation removal (and so was the RMID test library class). From looking at the test, it doesn't appear to depend on any functionality of RMID itself; it just needs some RMI endpoint. Is that correct? If so, the test should be adjusted to create some other RMI endpoint, possibly rmiregistry, and connect to that instead of RMID.