[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: error message improvement

Kaffe CVS cvs-commits at kaffe.org
Tue Feb 15 19:53:28 PST 2005


PatchSet 5552 
Date: 2005/02/16 03:45:09
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: error message improvement

2005-02-16  Dalibor Topic  <robilad at kaffe.org>

        Resynced with GNU Classpath.

        2005-02-15  Mark Wielaard  <mark at klomp.org>

        * javax/net/ssl/SSLContext.java (getInstance): Add exception message
        and/or cause before throwing.

Members: 
	ChangeLog:1.3596->1.3597 
	libraries/javalib/javax/net/ssl/SSLContext.java:1.6->1.7 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3596 kaffe/ChangeLog:1.3597
--- kaffe/ChangeLog:1.3596	Wed Feb 16 03:43:33 2005
+++ kaffe/ChangeLog	Wed Feb 16 03:45:09 2005
@@ -4,6 +4,15 @@
 
 	2005-02-15  Mark Wielaard  <mark at klomp.org>
 
+        * javax/net/ssl/SSLContext.java (getInstance): Add exception message
+        and/or cause before throwing.
+
+2005-02-16  Dalibor Topic  <robilad at kaffe.org>
+
+	Resynced with GNU Classpath.
+
+	2005-02-15  Mark Wielaard  <mark at klomp.org>
+
         * java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Just use
         space for parsing CLASS_PATH attribute.
 
Index: kaffe/libraries/javalib/javax/net/ssl/SSLContext.java
diff -u kaffe/libraries/javalib/javax/net/ssl/SSLContext.java:1.6 kaffe/libraries/javalib/javax/net/ssl/SSLContext.java:1.7
--- kaffe/libraries/javalib/javax/net/ssl/SSLContext.java:1.6	Sat Oct 23 21:39:01 2004
+++ kaffe/libraries/javalib/javax/net/ssl/SSLContext.java	Wed Feb 16 03:45:11 2005
@@ -140,7 +140,7 @@
   {
     if (provider == null)
       {
-        throw new IllegalArgumentException();
+        throw new IllegalArgumentException("null provider");
       }
     Provider p = Security.getProvider(provider);
     if (p == null)
@@ -174,13 +174,13 @@
       }
     catch (InvocationTargetException ite)
       {
-        ite.printStackTrace();
-        throw new NoSuchAlgorithmException();
+        NoSuchAlgorithmException nsae = new NoSuchAlgorithmException(protocol);
+        throw (NoSuchAlgorithmException) nsae.initCause(ite);
       }
     catch (ClassCastException cce)
       {
-        cce.printStackTrace();
-        throw new NoSuchAlgorithmException();
+        NoSuchAlgorithmException nsae = new NoSuchAlgorithmException(protocol);
+        throw (NoSuchAlgorithmException) nsae.initCause(cce);
       }
   }
 




More information about the kaffe mailing list