Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-107

SVN test case failure in Marshaller when system is on BST

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 0.6
    • 0.6
    • JaxMe Core
    • openSUSE 11.4 / Java / javac Sun 1.6.0_24 / x86

    Description

      When compiling I get a test case failure in the MarshallerTest.java - this seems to be due to some kind of timezone interpretation issue. I think the problem is with the testcase and not Jax itself. If I'm reading the code correctly a Date is retrieved from a Calendar object with the timezone set to GMT, subsequently this is retrieved and output with a custom Format class using SimpleDateFormat. I think the Date stores UTC and the SimpleDateFormat outputs to the system timezone (although I didn't check this not being clued up on where I could find the xml string output). The attached patch (assuming I can attach a patch in a moment) fixes this against SVN and allows the test case to pass on my system.

      Attachments

        1. MarshallerTest.diff
          0.8 kB
          Christopher HORLER

        Activity

          People

            Unassigned Unassigned
            chorler Christopher HORLER
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified