Author: sagara
Date: Sun Jul  8 07:09:33 2012
New Revision: 1358700

URL: http://svn.apache.org/viewvc?rev=1358700&view=rev
Log:
Fixed AXIS2-3912.

Modified:
    
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java

Modified: 
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?rev=1358700&r1=1358699&r2=1358700&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
 Sun Jul  8 07:09:33 2012
@@ -1155,6 +1155,10 @@ public class SchemaCompiler {
             //Process the particle
             processParticle(parentElementQName, particle, metaInfHolder, 
parentSchema);
         }
+        
+        if(complexType.isMixed()){
+            throw new SchemaCompilationException("XSD complexType with mix 
content not supported in ADB");
+        }
 
         //process attributes - first look for the explicit attributes
         
processAttributes(complexType.getAttributes(),metaInfHolder,parentSchema);


Reply via email to