Socket is a Closeable, so you can 

  try (Socket sock = ....) { ... }

If you want more debug messages, why not e.printStackTrace()? Message is enough?

Thanks
Max

> On Dec 2, 2015, at 8:55 AM, Xuelei Fan <[email protected]> wrote:
> 
> Hi,
> 
> Please review the test fix for JDK-8143298:
> 
>   http://cr.openjdk.java.net/~xuelei/8143298/webrev.00/
> 
> The root cause of the intermittent test failure is still unclear to me.
> I updated the test with more output messages, and clear the resources
> in finally blocks.  Hope the update can expose the real cause if it
> fails again in the future.
> 
> Thanks,
> Xuelei

Reply via email to