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

SimpleDateFormat fails to parse yyyy/MMM/dd

    XMLWordPrintable

    Details

      Description

      A DESCRIPTION OF THE PROBLEM :
      In Java 12 (new SimpleDateFormat("yyyy/MMM/dd")).parse("1959/DEC/6") works correctly, but in Java 14 it throws a ParseException.

      REGRESSION : Last worked in version 12

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      The expression (new SimpleDateFormat("yyyy/MMM/dd")).parse("1959/DEC/6") should return a valid Date.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A valid Date object.
      ACTUAL -
      java.text.ParseException: Unparseable date: "1959/DEC/6"

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: