[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4343) RemotingTest.testMapWrapper() relies on undefined behavior

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Fri Aug 7 07:44:29 EDT 2009

RemotingTest.testMapWrapper() relies on undefined behavior

                 Key: JBSEAM-4343
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4343
             Project: Seam
          Issue Type: Bug
          Components: Remoting, Test Harness
    Affects Versions: 2.2.0.GA
         Environment: Java(TM) SE Runtime Environment (build pxi3260sr4-20090219_01(SR4))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260-20090215_29883 (JIT enabled, AOT enabled)
J9VM - 20090215_029883_lHdSMr
JIT  - r9_20090213_2028
GC   - 20090213_AA)
JCL  - 20090218_01
            Reporter: Jozef Hartinger
            Assignee: Shane Bryzak
             Fix For: 2.2.1.CR1


The test expects the elements to be returned in the same order in which they were created:

However, on IBM JVM, the order of elements is not preserved in the returned tree, so the tree looks like this:

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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list