Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-368

error usage of array copy function in SOAPArrayType.java

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: unspecified
    • Fix Version/s: Version 2.3.1
    • Component/s: Binding
    • Labels:
      None
    • Environment:
      ALL

      Description

      It's just a simple code error.

      Locate the following construct method in class org.apache.xmlbeans.soap.SOAPArrayType:

      public SOAPArrayType(SOAPArrayType nested, int[] dimensions)

      Here is one line of error code you can find:

      System.arraycopy(_ranks, 0, nested._ranks, 0, nested._ranks.length);

      The src and dest parameters used in array copy function are reverse, the correct code should be:

      System.arraycopy(nested._ranks, 0, _ranks, 0, nested._ranks.length);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lali Adam Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: