logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[jira] Commented: (XERCESJ-1067) XSComplexTypeDecl. setValues ignores the : msg#00082

Subject: [jira] Commented: (XERCESJ-1067) XSComplexTypeDecl. setValues ignores the name param I passed
     [ 
http://issues.apache.org/jira/browse/XERCESJ-1067?page=comments#action_63328 ]
     
Michael Glavassevich commented on XERCESJ-1067:
-----------------------------------------------

In what context is this a problem? XSComplexTypeDecl is an internal class. 
Methods not defined by the XSComplexTypeDefinition interface are not intended 
for general use and may change some time in the futrue. In the instances where 
setValues() is called setName() is also called. Perhaps the name parameter 
should be removed from setValues() to avoid confusion.

> XSComplexTypeDecl. setValues  ignores the name param I passed
> -------------------------------------------------------------
>
>          Key: XERCESJ-1067
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1067
>      Project: Xerces2-J
>         Type: Bug
>   Components: XML Schema API
>     Reporter: Anil Saldhana

>
> public void setValues(String name, String targetNamespace,
>             XSTypeDefinition baseType, short derivedBy, short schemaFinal, 
>             short block, short contentType,
>             boolean isAbstract, XSAttributeGroupDecl attrGrp, 
>             XSSimpleType simpleType, XSParticleDecl particle,
>             XSObjectListImpl annotations) {
>         fTargetNamespace = targetNamespace;
>         fBaseType = baseType;
>         fDerivedBy = derivedBy;
>         fFinal = schemaFinal;
>         fBlock = block;
>         fContentType = contentType;
>         if(isAbstract)
>             fMiscFlags |= CT_IS_ABSTRACT;
>         fAttrGrp = attrGrp;
>         fXSSimpleType = simpleType;
>         fParticle = particle;
>         fAnnotations = annotations;
>    }
> What happened to the name param, I passed?
> Add the following line:
> fName = name;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


<Prev in Thread] Current Thread [Next in Thread>