commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1379796 - in /commons/proper/codec/trunk/src: changes/changes.xml main/java/org/apache/commons/codec/digest/DigestUtils.java
Date Sat, 01 Sep 2012 16:27:01 GMT
Author: ggregory
Date: Sat Sep  1 16:27:01 2012
New Revision: 1379796

URL: http://svn.apache.org/viewvc?rev=1379796&view=rev
Log:
[CODEC-152] DigestUtils.getDigest(String) looses the orginal exception.

Modified:
    commons/proper/codec/trunk/src/changes/changes.xml
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java

Modified: commons/proper/codec/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/changes/changes.xml?rev=1379796&r1=1379795&r2=1379796&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/changes/changes.xml (original)
+++ commons/proper/codec/trunk/src/changes/changes.xml Sat Sep  1 16:27:01 2012
@@ -51,6 +51,9 @@ The <action> type attribute can be add,u
     </release>
     -->
     <release version="1.7" date="TBD" description="Feature and fix release.">
+      <action issue="CODEC-152" dev="ggregory" type="add" due-to="ggregory">
+        DigestUtils.getDigest(String) looses the orginal exception.
+      </action>
       <action issue="CODEC-148" dev="ggregory" type="add" due-to="lathspell">
         More tests and minor things.
       </action>

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java?rev=1379796&r1=1379795&r2=1379796&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/DigestUtils.java
Sat Sep  1 16:27:01 2012
@@ -85,7 +85,7 @@ public class DigestUtils {
         try {
             return MessageDigest.getInstance(algorithm);
         } catch (NoSuchAlgorithmException e) {
-            throw new RuntimeException(e.getMessage());
+            throw new RuntimeException(e);
         }
     }
 



Mime
View raw message