RFR for JDK-7195249 Some jtreg tests use hard coded ports

taras ledkov taras.ledkov at oracle.com
Mon Nov 11 01:17:27 PST 2013


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: taras.ledkov at oracle.com
skype: taras_ledkov
Phone: 7(812)3346-157


More information about the serviceability-dev mailing list