harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r575153 - /harmony/enhanced/classlib/branches/java6/modules/security/src/main/java/common/java/security/Provider.java
Date Thu, 13 Sep 2007 03:22:32 GMT
Author: leoli
Date: Wed Sep 12 20:22:31 2007
New Revision: 575153

URL: http://svn.apache.org/viewvc?rev=575153&view=rev
Log:
Fix bug in (Move unnecessary Thread.dumpStackTrace in java.security.Provider.Service.newInstance()).

Modified:
    harmony/enhanced/classlib/branches/java6/modules/security/src/main/java/common/java/security/Provider.java

Modified: harmony/enhanced/classlib/branches/java6/modules/security/src/main/java/common/java/security/Provider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/security/src/main/java/common/java/security/Provider.java?rev=575153&r1=575152&r2=575153&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/security/src/main/java/common/java/security/Provider.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/security/src/main/java/common/java/security/Provider.java
Wed Sep 12 20:22:31 2007
@@ -806,6 +806,9 @@
         }
 
         Iterator<String> getAliases() {
+            if(aliases == null){
+                aliases = new ArrayList<String>(0);
+            }
             return aliases.iterator();
         }
 
@@ -864,8 +867,7 @@
                 }
                 return implementation.getConstructor(parameterTypes)
                         .newInstance(initargs);
-            } catch (Exception e) {
-                e.printStackTrace();
+            } catch (Exception e) {               
                 throw new NoSuchAlgorithmException(Messages.getString(
                         "security.199", //$NON-NLS-1$
                         type, algorithm), e);



Mime
View raw message