Codereview for JDK-8016221: A unit test should not use a fixed port to run a jmx connector (JDCMD MBean Tests)

shanliang shanliang.jiang at oracle.com
Wed Jun 12 00:56:37 PDT 2013


Re-send with right subject :)

Shanliang

shanliang wrote:
> Hi,
>
> The fix is to address https://jbs.oracle.com/bugs/browse/JDK-8016221
>
> Webrev: http://cr.openjdk.java.net/~sjiang/JDK-8016221/webrev.00/
>
> Instead to use a fixed port to run a JMX connector, we specify the 
> port as 0:
>    JMXServiceURL url = new JMXServiceURL("rmi", null, 0);
> to allow JMX to select a free port.
>
> and the fix makes sure to close the client and server when the test is 
> finished (passed or failed).
>
> Shanliang
>
>



More information about the serviceability-dev mailing list