You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/06/21 18:19:26 UTC
[jira] Resolved: (HARMONY-4106) [classlib][beans] XMLEncoder does
not encode array values
[ https://issues.apache.org/jira/browse/HARMONY-4106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov resolved HARMONY-4106.
--------------------------------------
Resolution: Fixed
> [classlib][beans] XMLEncoder does not encode array values
> ----------------------------------------------------------
>
> Key: HARMONY-4106
> URL: https://issues.apache.org/jira/browse/HARMONY-4106
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Roman S. Bushmanov
> Assignee: Alexei Zakharov
>
> The expected content of out.xml file after execution of the test
> ----------------------------------------- Test.java ----------------------------------------------------
> import java.beans.XMLEncoder;
> import java.io.*;
> public class Test {
> public static void main(String[] args) throws Exception {
> XMLEncoder encoder = new XMLEncoder(new FileOutputStream("out.xml"));
> encoder.writeObject(new int[] { 2, 4 });
> encoder.close();
> }
> }
> ------------------------------------------------------------------------------------------------------------
> is
> ------------------------------------------------ out.xml -------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <java version="1.5.0" class="java.beans.XMLDecoder">
> <array class="int" length="2">
> <void index="0">
> <int>2</int>
> </void>
> <void index="1">
> <int>4</int>
> </void>
> </array>
> </java>
> ------------------------------------------------------------------------------------------------------------
> however, Harmony produces the following
> ------------------------------------------------ out.xml -------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <java version="1.5.0" class="java.beans.XMLDecoder">
> <array class="int" length="2"/>
> </java>
> ------------------------------------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.