Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5926

list of NMTOKEN in xsd generating wrong method : convertToNMToken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.6.2, 1.7.5, 1.7.6, 1.7.7, 1.7.8
    • None
    • adb, codegen, wsdl
    • None
    • Eclipse, MVN, command line, windows
    • Patch

    Description

      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
      <xs:simpleType name="ReferenceListType">
      <xs:list itemType="xs:NMTOKEN" />
      </xs:simpleType>
      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

       

      Attachments

        Activity

          People

            robertlazarski Robert Lazarski
            harshas harsha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: