Michael McMahon wrote:
But, bind() already closes the impl internally before throwing the exception.
I was wondering about that and whether this is a bug. Suppose someone creates an unbound DatagramSocket and then attempts to bind it to a port. If the bind fails (say port already in use) then it may be surprising that they can't retry with a different port. Should this be specified? I see there are cases such as the security exception where it doesn't the close the impl.

-Alan.

Reply via email to