incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r1027737 - in /incubator/bval/trunk: bval-guice/pom.xml bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java bval-xstream/pom.xml pom.xml
Date Tue, 26 Oct 2010 20:36:56 GMT
Author: dwoods
Date: Tue Oct 26 20:36:55 2010
New Revision: 1027737

URL: http://svn.apache.org/viewvc?rev=1027737&view=rev
Log:
BVAL-84 CNFEX org.slf4j.impl.StaticLoggerBinder building xstream and guice.  Patch contributed
by Albert Lee.

Modified:
    incubator/bval/trunk/bval-guice/pom.xml
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
    incubator/bval/trunk/bval-xstream/pom.xml
    incubator/bval/trunk/pom.xml

Modified: incubator/bval/trunk/bval-guice/pom.xml
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-guice/pom.xml?rev=1027737&r1=1027736&r2=1027737&view=diff
==============================================================================
--- incubator/bval/trunk/bval-guice/pom.xml (original)
+++ incubator/bval/trunk/bval-guice/pom.xml Tue Oct 26 20:36:55 2010
@@ -57,6 +57,11 @@
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <profiles>

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java?rev=1027737&r1=1027736&r2=1027737&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java
Tue Oct 26 20:36:55 2010
@@ -617,8 +617,19 @@ public class ClassValidator implements V
             return ex; // do not wrap specific ValidationExceptions (or
                        // instances from subclasses)
         } else {
-            return new ValidationException("error during validation of "
-                + object, ex);
+            String objectId = "";
+            try {
+                if (object != null) {
+                    objectId = object.toString();
+                } else {
+                    objectId = "<null>";
+                }
+            } catch (Exception e) {
+                objectId = "<unknown>";
+            } finally {
+                return new ValidationException("error during validation of "
+                    + objectId, ex);
+            }
         }
     }
 

Modified: incubator/bval/trunk/bval-xstream/pom.xml
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-xstream/pom.xml?rev=1027737&r1=1027736&r2=1027737&view=diff
==============================================================================
--- incubator/bval/trunk/bval-xstream/pom.xml (original)
+++ incubator/bval/trunk/bval-xstream/pom.xml Tue Oct 26 20:36:55 2010
@@ -51,6 +51,11 @@
       <artifactId>junit</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-simple</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
 
   <build>

Modified: incubator/bval/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/pom.xml?rev=1027737&r1=1027736&r2=1027737&view=diff
==============================================================================
--- incubator/bval/trunk/pom.xml (original)
+++ incubator/bval/trunk/pom.xml Tue Oct 26 20:36:55 2010
@@ -313,6 +313,11 @@
                 <version>1.6.1</version>
             </dependency>
             <dependency>
+                <groupId>org.slf4j</groupId>
+                <artifactId>slf4j-simple</artifactId>
+                <version>1.6.1</version>
+            </dependency>
+            <dependency>
                 <groupId>commons-lang</groupId>
                 <artifactId>commons-lang</artifactId>
                 <version>2.4</version>



Mime
View raw message