You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2009/12/02 14:32:06 UTC

svn commit: r886137 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/_ExternalSpecifications.java

Author: matzew
Date: Wed Dec  2 13:32:06 2009
New Revision: 886137

URL: http://svn.apache.org/viewvc?rev=886137&view=rev
Log:
using ClassNotFoundException, where possible...

This class needs some more help (a look at Trinidad's ClassLoaderUtils would be nice)

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/_ExternalSpecifications.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/_ExternalSpecifications.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/_ExternalSpecifications.java?rev=886137&r1=886136&r2=886137&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/_ExternalSpecifications.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/_ExternalSpecifications.java Wed Dec  2 13:32:06 2009
@@ -18,10 +18,11 @@
  */
 package javax.faces.component;
 
-import javax.validation.Validation;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
+import javax.validation.Validation;
+
 /**
  * <p>
  * Package-private utility class for determining which specifications are available
@@ -65,9 +66,9 @@
                 }
             }
         }
-        catch (Throwable t)
+        catch (ClassNotFoundException cnfe)
         {
-            log.log(Level.FINE, "Error loading class (could be normal)", t);
+            log.log(Level.FINE, "Error loading class (could be normal)", cnfe);
             tmp = false;
         }
         isBeanValidationAvailable = tmp;
@@ -88,12 +89,11 @@
             //TODO: Check this class name when Unified EL for Java EE6 is final.
             tmp = (Class.forName("javax.el.ValueReference") != null);
         }
-        catch (Throwable t)
+        catch (ClassNotFoundException cnfe)
         {
-            log.log(Level.FINE, "Error loading class (could be normal)", t);
+            log.log(Level.FINE, "Error loading class (could be normal)", cnfe);
             tmp = false;
         }
         isUnifiedELAvailable = tmp;
     }
-
-}
+}
\ No newline at end of file