harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5840) [calsslib][beans] Exception when XMLDecoder array is missing length
Date Fri, 23 May 2008 03:11:55 GMT

    [ 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.


Mime
View raw message