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

tools/jar/JarEntryTime.java fails with modified time mismatch

    XMLWordPrintable

    Details

    • Resolved In Build:
      b27
    • CPU:
      x86_64
    • OS:
      windows

      Backports

        Description

        tools/jar/JarEntryTime.java

        ava.lang.Exception: Stack trace
        at java.base/java.lang.Thread.dumpStack(Thread.java:1380)
        at JarEntryTime.fail(JarEntryTime.java:205)
        at JarEntryTime.checkFileTime(JarEntryTime.java:177)
        at JarEntryTime.realMain(JarEntryTime.java:137)
        at JarEntryTime.main(JarEntryTime.java:213)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:51)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:833)
        java.lang.AssertionError: Some tests failed
        at JarEntryTime.main(JarEntryTime.java:215)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:51)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:833)

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

        ----------System.out:(3/110)----------
        Extracted to 2021-11-07T08:38:40Z, expected to be close to 2021-11-07T09:38:41.436Z

        Passed = 23 failed = 1
        result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed

        The test's start timestamp
        end=Sun Nov 07 07\:38\:42 PST 2021

        the timestamp retrieved from the last modified attribute of the file == 2021-11-07T08:38:40Z

        the timestamp used to set the modified time on the file ==
        2021-11-07T09:38:41.436Z

        each is an hour out -- this was 7th Nov when DST was ended, but you'd expect the system to have been updated at this time.

        a slightly curious failure that might be significant or hinting at some deeper issue.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                lancea Lance Andersen
                Reporter:
                msheppar Mark Sheppard
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: