I have some tests made with xmlunit and they work differently using JDK 1.3 and JDK 1.4. In both cases I have the same classpath and I also set the parser properties.
The test compare dynamically constructed xml text with a control static text.
In JDK 1.3 the tests pass but not in JDK 1.4 and it seems that the order changes in one and another.
Any ideas about this?
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem.
In my case, I have object stored on HashMap, and then serialized in XML. the order write is different between JDK1.3 and JDK1.4 (I suppose that the HashMap class use different algo for computing hashcode between 1.3 and 1.4).
For me, the result is similar as describe on bug: "[ 703430 ] Unordered elements with attributes are not similar"
so xmlunit don't recognize 'similar' data (similar by attribute) when working with JDK1.4
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all and thanks for xml unit
I have some tests made with xmlunit and they work differently using JDK 1.3 and JDK 1.4. In both cases I have the same classpath and I also set the parser properties.
The test compare dynamically constructed xml text with a control static text.
In JDK 1.3 the tests pass but not in JDK 1.4 and it seems that the order changes in one and another.
Any ideas about this?
Regards
I have the same problem.
In my case, I have object stored on HashMap, and then serialized in XML. the order write is different between JDK1.3 and JDK1.4 (I suppose that the HashMap class use different algo for computing hashcode between 1.3 and 1.4).
For me, the result is similar as describe on bug: "[ 703430 ] Unordered elements with attributes are not similar"
so xmlunit don't recognize 'similar' data (similar by attribute) when working with JDK1.4