2003-06-11 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java:
Partly merged with classpath.
From-SVN: r67755
+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,
}
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;
+ }
}
/**