FYI: Win32 InetAddress fix (really)

David Daney ddaney@avtrex.com
Tue Oct 3 15:10:00 GMT 2006


Gary Benson wrote:
> +	// Some soon-to-be-removed native code synchronizes on this.
> +	loopbackAddress = LOCALHOST;
> +      }
> +    catch (UnknownHostException e)
> +      {
> +	throw new RuntimeException("should never happen", e);
> +      }
>   
Would it be better to throw an InternalError here rather than 
RuntimeException?  If it truly should never happen then it would be an 
InternalError if it did.  If it can happen, then it should be of some 
type the describes the problem.

David Daney





More information about the Java-patches mailing list