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

list of NMTOKEN in xsd generating wrong method : convertToNMToken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2, 1.7.5, 1.7.6, 1.7.7, 1.7.8
    • Fix Version/s: None
    • Component/s: adb, codegen, wsdl
    • Labels:
      None
    • Environment:
      Eclipse, MVN, command line, windows
    • Flags:
      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

            • Assignee:
              Unassigned
              Reporter:
              harshas harsha
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: