Amila,

Can you please mark AXIS2-1522 as fixed if it indeed fixes the bug?

https://issues.apache.org/jira/browse/AXIS2-1522

thanks,
dims

On 6/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Author: amilas
Date: Wed Jun 27 00:15:58 2007
New Revision: 551082

URL: http://svn.apache.org/viewvc?view=rev&rev=551082
Log:
fixed issue Axis2-1522

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

Modified: 
webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?view=diff&rev=551082&r1=551081&r2=551082
==============================================================================
--- 
webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
 (original)
+++ 
webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
 Wed Jun 27 00:15:58 2007
@@ -722,6 +722,11 @@
     private XmlSchema resolveParentSchema(QName schemaTypeName, XmlSchema 
currentSchema)
             throws SchemaCompilationException {
         String targetNamespace = schemaTypeName.getNamespaceURI();
+
+        // if the current schema has the same namespace we use it
+        if (currentSchema.getTargetNamespace().equals(targetNamespace)){
+            return currentSchema;
+        }
         Object loadedSchema = loadedSchemaMap.get(targetNamespace);
         if (loadedSchema != null) {
             return (XmlSchema) loadedSchema;
@@ -1012,7 +1017,7 @@
            if (xmlSchemaAttributeGroup != null){
                
processAttributes(xmlSchemaAttributeGroup.getAttributes(),metaInfHolder,parentSchema);
            } else {
-               throw new SchemaCompilationException("Can not find an attribute 
group for group reference"
+               throw new SchemaCompilationException("Can not find an attribute 
group for group reference "
                        + attributeGroupRefName.getLocalPart());
            }
         } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to