classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Chain SocketException


From: Mark Wielaard
Subject: [cp-patches] FYI: Chain SocketException
Date: Wed, 19 Oct 2005 17:53:57 +0200

Hi,

This helped me debug starting jboss a bit.

2005-10-19  Mark Wielaard  <address@hidden>

    * java/net/Socket.java (getImpl): Chain exception before throwing.

Committed,

Mark

diff -u -r1.53 Socket.java
--- java/net/Socket.java        9 Oct 2005 22:05:47 -0000       1.53
+++ java/net/Socket.java        19 Oct 2005 15:52:45 -0000
@@ -325,7 +325,9 @@
       }
     catch (IOException e)
       {
-       throw new SocketException(e.getMessage());
+       SocketException se = new SocketException(e.toString());
+       se.initCause(e);
+       throw se;
       }

     return impl;

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]