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

java/util/zip/TestLocalTime.java fails intermittently with Invalid value for NanoOfSecond

XMLWordPrintable

    • b107
    • Verified

      java/util/zip/TestLocalTime.java fails intermittently with Invalid value for NanoOfSecond:

      ----------System.out:(10/295)----------
      --------------------
      Testing: [2015-09-03T20:22:00.000351]
      --------------------
      Testing: [1968-09-03T20:22:00.000351]
      --------------------
      Testing: [1970-09-03T20:22:00.000351]
      --------------------
      Testing: [1982-09-03T20:22:00.000351]
      --------------------
      Testing: [2037-09-03T20:22:00.000351]
      ----------System.err:(19/1084)----------
      java.time.DateTimeException: Invalid value for NanoOfSecond (valid values 0 - 999999999): -1000000
      at java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311)
      at java.time.temporal.ChronoField.checkValidValue(ChronoField.java:703)
      at java.time.LocalTime.of(LocalTime.java:342)
      at java.time.LocalDateTime.of(LocalDateTime.java:362)
      at java.util.zip.ZipEntry.getTimeLocal(ZipEntry.java:269)
      at TestLocalTime.check(TestLocalTime.java:105)
      at TestLocalTime.getBytes(TestLocalTime.java:67)
      at TestLocalTime.main(TestLocalTime.java:47)
      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:504)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:746)

      JavaTest Message: Test threw exception: java.time.DateTimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.time.DateTimeException: Invalid value for NanoOfSecond (valid values 0 - 999999999): -1000000

            sherman Xueming Shen
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: