harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r498927 - /harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/KeyStoreSpi.java
Date Tue, 23 Jan 2007 05:56:16 GMT
Author: smishura
Date: Mon Jan 22 21:56:15 2007
New Revision: 498927

URL: http://svn.apache.org/viewvc?view=rev&rev=498927
Log:
Apply patch for HARMONY-2931:
[classlib][security] KeyStoreSpi.engineLoad(KeyStore.LoadStoreParameter) catches exception
improperly

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/KeyStoreSpi.java

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/KeyStoreSpi.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/KeyStoreSpi.java?view=diff&rev=498927&r1=498926&r2=498927
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/KeyStoreSpi.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/KeyStoreSpi.java
Mon Jan 22 21:56:15 2007
@@ -89,7 +89,7 @@
                 pwd = ((KeyStore.PasswordProtection) pp).getPassword();
                 engineLoad(null, pwd);
                 return;
-            } catch (Exception e) {
+            } catch (IllegalStateException e) {
                 throw new IllegalArgumentException(e);
             }
         }
@@ -98,7 +98,7 @@
                 pwd = getPasswordFromCallBack(pp);
                 engineLoad(null, pwd);
                 return;
-            } catch (Exception e) {
+            } catch (UnrecoverableEntryException e) {
                 throw new IllegalArgumentException(e);
             }
         }



Mime
View raw message