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]

[Patch] PR 17069: fix for InetAddress.getLocalHost


Hi list,


I wrote the attached patch to fix PR libgcj/17069. The problem was that
InetAddress.getLocalHost() returned an invalid InetAddress object when
the local hostname could not be determined (e.g. when /etc/hostname
doesn't exist or is not setup properly).

Ok to commit to trunk ?


Michael

2005-01-09  Michael Koch  <konqueror@gmx.de>

	PR libgcj/17069
	* java/net/InetAddress.java (getLocalHost):
	Throw UnknownHostException if local hostname cannot be determined.

Attachment: net.diff
Description: Text document


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