-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.0.CR1
-
Release Notes
org.jboss.seam.test.unit.RemotingTest.testMapWrapper()
The test expects the elements to be returned in the same order in which they were created:
<map><element><k><str>bar</str></k><v><str>zzzzz</str></v></element><element><k><str>foo</str></k><v><str>aaaaa</str></v></element></map>
However, on IBM JVM, the order of elements is not preserved in the returned tree, so the tree looks like this:
<map><element><k><str>foo</str></k><v><str>aaaaa</str></v></element><element><k><str>bar</str></k><v><str>zzzzz</str></v></element></map>
The assumption of the test is incorrect, because the marshal() method of MapWrapper class iterates over a Set of keys and thus the order cannot be guaranteed.