summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--javax/net/ssl/SSLContext.java10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 702e6710b..862207977 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-02-15 Mark Wielaard <mark@klomp.org>
+ * javax/net/ssl/SSLContext.java (getInstance): Add exception message
+ and/or cause before throwing.
+
+2005-02-15 Mark Wielaard <mark@klomp.org>
+
* java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Just use
space for parsing CLASS_PATH attribute.
diff --git a/javax/net/ssl/SSLContext.java b/javax/net/ssl/SSLContext.java
index f69e2678b..6cab45351 100644
--- a/javax/net/ssl/SSLContext.java
+++ b/javax/net/ssl/SSLContext.java
@@ -140,7 +140,7 @@ public class SSLContext
{
if (provider == null)
{
- throw new IllegalArgumentException();
+ throw new IllegalArgumentException("null provider");
}
Provider p = Security.getProvider(provider);
if (p == null)
@@ -174,13 +174,13 @@ public class SSLContext
}
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);
}
}