[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Another small java.net exception hiding fixlet
From: |
Mark Wielaard |
Subject: |
[cp-patches] FYI: Another small java.net exception hiding fixlet |
Date: |
Mon, 11 Jul 2005 20:37:53 +0200 |
Hi,
Here is another fixlet to show the real cause of an exception in
java.net:
2005-07-11 Mark Wielaard <address@hidden>
* java/net/DatagramSocket.java (getImpl): Record cause of Exception.
Committed,
Mark
diff -u -r1.44 DatagramSocket.java
--- java/net/DatagramSocket.java 2 Jul 2005 20:32:39 -0000 1.44
+++ java/net/DatagramSocket.java 11 Jul 2005 18:35:57 -0000
@@ -209,7 +209,9 @@
}
catch (IOException e)
{
- throw new SocketException(e.getMessage());
+ SocketException se = new SocketException();
+ se.initCause(e);
+ throw se;
}
}
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Another small java.net exception hiding fixlet,
Mark Wielaard <=