This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: Win32 InetAddress fix (really)


David Daney writes:
 > 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.

AFAICR this is the kind of thing that happens if the IP address of the
loopback interface doesn't have a resolvable name,

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]