DatagramSocket.java: Partly merged with classpath.

2003-06-11  Michael Koch  <konqueror@gmx.de>

	* java/net/DatagramSocket.java:
	Partly merged with classpath.

From-SVN: r67755
This commit is contained in:
Michael Koch 2003-06-11 10:38:38 +00:00 committed by Michael Koch
parent 37f3981f80
commit 39b3ceceee
2 changed files with 26 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java:
Partly merged with classpath.
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/awt/Frame.java,

View File

@ -174,11 +174,28 @@ public class DatagramSocket
}
impl.create();
impl.bind(port, laddr == null ? InetAddress.ANY_IF : laddr);
if (laddr == null)
laddr = InetAddress.ANY_IF;
remoteAddress = null;
remotePort = -1;
try
{
impl.bind (port, laddr);
}
catch (SocketException exception)
{
impl.close ();
throw exception;
}
catch (RuntimeException exception)
{
impl.close ();
throw exception;
}
catch (Error error)
{
impl.close ();
throw error;
}
}
/**