bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1668038 - /bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
Date Fri, 20 Mar 2015 14:59:28 GMT
Author: rmannibucau
Date: Fri Mar 20 14:59:28 2015
New Revision: 1668038

URL: http://svn.apache.org/r1668038
Log:
dont fail if not possible to use loaded class in cdi extension, just log a short message (if
it fails i suspect a bunch of these errors can happen) + a very small simplification for our
cdi class filter

Modified:
    bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java

Modified: bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
URL: http://svn.apache.org/viewvc/bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java?rev=1668038&r1=1668037&r2=1668038&view=diff
==============================================================================
--- bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java (original)
+++ bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java Fri
Mar 20 14:59:28 2015
@@ -63,10 +63,7 @@ public class BValExtension implements Ex
         
         @Override
         public boolean accept(AnnotatedType<?> annotatedType) {
-            if (annotatedType.getJavaClass().getName().startsWith("org.apache.bval.")) {
-                return false;
-            }
-            return true;
+            return !annotatedType.getJavaClass().getName().startsWith("org.apache.bval.");
         }
     };
 
@@ -192,6 +189,8 @@ public class BValExtension implements Ex
                 }
             } catch (final ValidationException ve) {
                 LOGGER.log(Level.FINEST, ve.getMessage(), ve);
+            } catch (final Exception e) { // just info
+                LOGGER.log(Level.INFO, e.getMessage());
             }
         }
     }



Mime
View raw message