You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sean Qiu (JIRA)" <ji...@apache.org> on 2008/05/23 05:11:55 UTC

[jira] Commented: (HARMONY-5840) [calsslib][beans] Exception when XMLDecoder array is missing length

    [ https://issues.apache.org/jira/browse/HARMONY-5840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599267#action_12599267 ] 

Sean Qiu commented on HARMONY-5840:
-----------------------------------

This patch will instantiate the array class to the end of the array node using SAX.
It determine the length of the array according to the count of sub element.
It will also operate type check to guarantee we can get a right array.

> [calsslib][beans] Exception when XMLDecoder array is missing length
> -------------------------------------------------------------------
>
>                 Key: HARMONY-5840
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5840
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M6
>            Reporter: Sean Qiu
>             Fix For: 5.0M6
>
>         Attachments: Harmony-5840.diff
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.