Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2406

Seam: RemotingTest.testMapWrapper() relies on undefined behavior

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP 5.0.0.CR3
    • EAP 5.0.0.CR1
    • Seam, Testsuite
    • Release Notes

    Description

      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.

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: