Author: veithen
Date: Sun Dec  7 13:13:28 2008
New Revision: 724204

URL: http://svn.apache.org/viewvc?rev=724204&view=rev
Log:
WSCOMMONS-357: Throw an OMException in UUIDGenerator.getInitialUUID if the code 
fails to get an MD5 message digester (this should normally never happen if the 
JRE is set up correctly).

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/UUIDGenerator.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/UUIDGenerator.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/UUIDGenerator.java?rev=724204&r1=724203&r2=724204&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/UUIDGenerator.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/util/UUIDGenerator.java
 Sun Dec  7 13:13:28 2008
@@ -26,6 +26,8 @@
 import java.util.Date;
 import java.util.Random;
 
+import org.apache.axiom.om.OMException;
+
 public class UUIDGenerator {
     /** This class will give UUIDs for axis2. */
 
@@ -71,8 +73,7 @@
         try {
             md5 = MessageDigest.getInstance("MD5");
         } catch (NoSuchAlgorithmException e) {
-            //System.out.println("Error: " + e);
-            //todo heve to be properly handle
+            throw new OMException(e);
         }
         md5.update(sb.toString().getBytes());
         byte[] array = md5.digest();


Reply via email to