Hi, Here is another fixlet to show the real cause of an exception in java.net:
2005-07-11 Mark Wielaard <[EMAIL PROTECTED]>
* 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
_______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
