Menu

JDKs differences

2002-08-22
2003-04-02
  • Carlos Quiroz

    Carlos Quiroz - 2002-08-22

    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

     
    • BARBOSA Norbert

      BARBOSA Norbert - 2003-04-02

      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

       

Log in to post a comment.