This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: [patch] Re: Correction to InetAddress bug?


Bryce McKinlay wrote:

> Warren Levy wrote:
>
> > Hmm, the problem seems to be that the InetAddress that is instantiated
> > has a null address value.  I'll have to look deeper to decide on the
> > right fix (something might be relying on address being null at times,
> > though I hope not).
>
> Err, well... here is a suggested fix ;-)
>
> [WARNING: DatagramSocketImpl changes not tested.]

Oops, I forgot to include this file in the patch:

Index: libjava/java/net/DatagramSocket.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/net/DatagramSocket.java,v
retrieving revision 1.4
diff -u -r1.4 DatagramSocket.java
--- DatagramSocket.java 1999/07/20 20:30:42     1.4
+++ DatagramSocket.java 1999/07/27 07:45:37
@@ -28,12 +28,12 @@

   public DatagramSocket() throws SocketException
   {
-    this(0, null);
+    this(0, ServerSocket.IF_ANY);
   }

   public DatagramSocket(int port) throws SocketException
   {
-    this(port, null);
+    this(port, ServerSocket.IF_ANY);
   }

   public DatagramSocket(int port, InetAddress laddr) throws SocketException




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