cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1130684 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
Date Thu, 02 Jun 2011 17:45:05 GMT
Author: dkulp
Date: Thu Jun  2 17:45:05 2011
New Revision: 1130684

URL: http://svn.apache.org/viewvc?rev=1130684&view=rev
Log:
[CXF-3453] Add more error codes for the invalid attribute issues

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java?rev=1130684&r1=1130683&r2=1130684&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
Thu Jun  2 17:45:05 2011
@@ -66,9 +66,11 @@ public class DataReaderImpl<T> extends J
         
         public boolean handleEvent(ValidationEvent event) {
             String msg = event.getMessage();
-            if ((msg.startsWith("cvc-type.3.1.1: ") 
-                || msg.startsWith("cvc-type.3.2.2: "))  
-                && msg.contains(":Id")) {
+            if (msg.contains(":Id") 
+                && (msg.startsWith("cvc-type.3.1.1: ") 
+                    || msg.startsWith("cvc-type.3.2.2: ") 
+                    || msg.startsWith("cvc-complex-type.3.1.1: ")
+                    || msg.startsWith("cvc-complex-type.3.2.2: "))) {
                 return true;
             }
             if (origHandler != null) {



Mime
View raw message