diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | javax/net/ssl/SSLContext.java | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -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); } } |