Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5840

[calsslib][beans] Exception when XMLDecoder array is missing length

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0M6
    • 5.0M6
    • Classlib
    • None
    • Patch Available

    Description

      When using XMLDecoder to decoder following xml file, it will throw unexpected exception.
      The root cause of the exception is that our XMLDecoder cannot handle the arry without length.
      But RI can return the right object according to the sub elements of the node.

      <java version='1.4.0' class='java.beans.XMLDecoder'>
      <array class='int'>
      <int>11</int>
      <int>22</int>
      </array>
      </java>

      Attachments

        1. Harmony-5840.diff
          18 kB
          Sean Qiu

        Activity

          People

            qiuxiaox Sean Qiu
            qiuxiaox Sean Qiu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment