DatagramSocket.java (DatagramSocket(int,InetAddress)): Handle null addresses.

* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
	  Handle null addresses.

From-SVN: r32339
This commit is contained in:
Warren Levy 2000-03-05 09:01:16 +00:00 committed by Warren Levy
parent 5a43052b1a
commit c261e080ef
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-03-05 Warren Levy <warrenl@cygnus.com>
* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
Handle null addresses.
2000-03-04 Anthony Green <green@redhat.com>
* configure.host (libgcj_flags): Define __NO_MATH_INLINES.

View File

@ -1,6 +1,6 @@
// DatagramSocket.java
/* Copyright (C) 1999 Red Hat, Inc.
/* Copyright (C) 1999, 2000 Red Hat, Inc.
This file is part of libgcj.
@ -66,7 +66,7 @@ public class DatagramSocket
if (this instanceof MulticastSocket)
impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(true));
impl.bind(port, laddr);
impl.bind(port, laddr == null ? ServerSocket.ANY_IF : laddr);
}
public void close()