commits@javamail.java.net

[mercurial:116] IOException constructor doesn't accept another exception in 1.4.

From: <shannon_at_kenai.com>
Date: Mon, 9 Feb 2009 19:41:03 +0000 (GMT)

Repository: mercurial
Revision: 116
Author: Bill Shannon <bill.shannon_at_sun.com>
Date: 2009-02-06 03:26:34 UTC

Log Message:
-----------
IOException constructor doesn't accept another exception in 1.4.

Modified Paths:
--------------
    mail/src/main/java/com/sun/mail/util/SocketFetcher.java

Diffs:
-----
diff -r f5544db3aac2 -r cf03464f7ad9
mail/src/main/java/com/sun/mail/util/SocketFetcher.java
--- a/mail/src/main/java/com/sun/mail/util/SocketFetcher.java Wed Feb
04 18:09:45 2009 -0800
+++ b/mail/src/main/java/com/sun/mail/util/SocketFetcher.java Thu Feb
05 19:26:34 2009 -0800
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
  *
  * The contents of this file are subject to the terms of either the
GNU
  * General Public License Version 2 only ("GPL") or the Common
Development
@@ -481,8 +481,10 @@
                return;
        } catch (SSLPeerUnverifiedException e) {
            sslSocket.close();
- throw new IOException(
- "Can't verify identity of server: " + server, e);
+ IOException ioex = new IOException(
+ "Can't verify identity of server: " + server);
+ ioex.initCause(e);
+ throw ioex;
        }
 
        // If we get here, there is nothing to consider the server as
trusted.