Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1389

Tests fail due to different order of attributes (under Java 6)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.1
    • 1.4-M3
    • wicket
    • None
    • JDK 1.6.0_04

    Description

      When building wicket-1.3-SNAPSHOT using JDK 1.6.0_04 I get some test failures with messages all similar to this:

      < <style type="text/css" id="org-apache-wicket-ajax-MockComponent1-0">

      > <style id="org-apache-wicket-ajax-MockComponent1-0" type="text/css">

      It seems like the element attributes have come in the "wrong" order (compared to the test case).

      Since making the tests attribute order independent would probably be difficult, I suggest instead that the code is changed to guarantee that the attributes always come in the same order (TreeMap instead of HashMap?).

      Attachments

        Activity

          People

            frankbille Frank Bille
            henrik.lundahl Henrik Lundahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: