Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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[]
);
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>
------------------------------------------------------------------------------------------------------------
Attachments
Issue Links
- blocks
-
HARMONY-4107 [M2] umbrella task for 98% pass rate of Functional test suite - HARMONY-3528; no regression since M1
- Closed