Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8146389

java/util/logging/XMLFormatterDate.java fails during year switch

    XMLWordPrintable

    Details

      Description

      java/util/logging/XMLFormatterDate.java

      This test fail during year switch, see log:

      ----------System.out:(10/219)----------
      <record>
        <date>2016-01-01T00:18:08.372692Z</date>
        <millis>1451607488372</millis>
        <nanos>692000</nanos>
        <sequence>1000</sequence>
        <level>INFO</level>
        <thread>534</thread>
        <message>test</message>
      </record>

      ----------System.err:(22/849)----------
      java.lang.Error: Expected year 2015 not found in log:
      <record>
        <date>2016-01-01T00:18:08.372692Z</date>
        <millis>1451607488372</millis>
        <nanos>692000</nanos>
        <sequence>1000</sequence>
        <level>INFO</level>
        <thread>534</thread>
        <message>test</message>
      </record>

      at XMLFormatterDate.main(XMLFormatterDate.java:93)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:747)

      JavaTest Message: Test threw exception: java.lang.Error
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.Error: Expected year 2015 not found in log: <record> <date>2016-01-01T00:18:08.372692Z</date> <millis>1451607488372</millis> <nanos>692000</nanos> <sequence>1000</sequence> <level>INFO</level> <thread>534</thread> <message>test</message> </record>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: