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

DateTimeFormatter.parse throws exception after update to tzdata2018i

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The issue is reproducible with latest 11u builds.

      Steps to reproduce:

      1) update to tzdata2018i using a TimeZone updater tool (Note: not reproducible with tzdata2018g)
      2) run the test (in attachments)
      3) if the test throws exception, the issue is reproducible

      Exception in thread "main" java.time.format.DateTimeParseException: Text '2019-06-18T20:11:40.196PST' could not be parsed: null
      at java.base/java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:2021)
      at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1882)
      at Test.main(Test.java:8)
      Caused by: java.lang.NullPointerException
      at java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.prefixLength(DateTimeFormatterBuilder.java:4532)
      at java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.add0(DateTimeFormatterBuilder.java:4401)
      at java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.add(DateTimeFormatterBuilder.java:4396)
      at java.base/java.time.format.DateTimeFormatterBuilder$ZoneTextPrinterParser.getTree(DateTimeFormatterBuilder.java:4143)
      at java.base/java.time.format.DateTimeFormatterBuilder$ZoneIdPrinterParser.parse(DateTimeFormatterBuilder.java:4254)
      at java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2374)
      at java.base/java.time.format.DateTimeFormatter.parseUnresolved0(DateTimeFormatter.java:2111)
      at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2040)
      at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1878)
      ... 1 more

        Attachments

          Activity

            People

            • Assignee:
              rpatil Ramanand Patil
              Reporter:
              dcherepanov Dmitry Cherepanov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: