axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "harsha (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5926) list of NMTOKEN in xsd generating wrong method : convertToNMToken
Date Tue, 24 Jul 2018 15:30:00 GMT
harsha created AXIS2-5926:
-----------------------------

             Summary: list of NMTOKEN in xsd generating wrong method : convertToNMToken
                 Key: AXIS2-5926
                 URL: https://issues.apache.org/jira/browse/AXIS2-5926
             Project: Axis2
          Issue Type: Bug
          Components: adb, codegen, wsdl
    Affects Versions: 1.7.8, 1.7.7, 1.7.6, 1.7.5, 1.6.2
         Environment: Eclipse, MVN, command line, windows
            Reporter: harsha


This to report a bug and error on NMTOKEN Simple Type

In the xsd file if the NMTOKEN variable is used as list for example
{color:#808080}<{color}{color:#569cd6}xs:simpleType{color} {color:#9cdcfe}name{color}{color:#d4d4d4}={color}{color:#ce9178}"ReferenceListType"{color}{color:#808080}>{color}
{color:#808080}<{color}{color:#569cd6}xs:list{color} {color:#9cdcfe}itemType{color}{color:#d4d4d4}={color}{color:#ce9178}"xs:NMTOKEN"{color}
{color:#808080}/>{color}
{color:#808080}</{color}{color:#569cd6}xs:simpleType{color}{color:#808080}>{color}
It generates the class Reference type :

fromString Method with following line

objectValues[i] =                            org.apache.axis2.databinding.utils.ConverterUtil.convertToNMToken(values[i]);

As per the reference symbole  convertToNMToken doesnt exist, looking at the abailable methos
it should be convertToNMTOKEN(...)

Token is capital, once the java file is corrected the code compiles

can you please investigate why axis2 (i tested with 1.6.4 and 1.7.7, 1.7.8) we get this error

can you please fix ?

Kind Regards

Harsha S

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message