Hi Everyone

I am working on bug https://bugs.openjdk.java.net/browse/JDK-7195249.

After a conversation with Jaroslav Bachorik, the suggested fix for sun/management/jmxremote/bootstrap/RmiBootstrapTest.java consists in replacing
errStr = testConfiguration(file,port+testPort++);
and
errStr = testConfigurationKo(conf[i],port+testPort++);

with
errStr = testConfiguration(file,jdk.testlibrary.Utils.getFreePort());
errStr = testConfigurationKo(conf[i],jdk.testlibrary.Utils.getFreePort());

Selecting a range of ports is more error prone than selecting ports one by one.

Please let me know if you see anything wrong with this fix.

Taras

--
With best regards,
Taras Ledkov
Mail-To: [email protected]
skype: taras_ledkov
Phone: 7(812)3346-157

Reply via email to