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

DateTimeFormatter withResolverFields() fails to accept null

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b08

      Backports

        Description

        This method is supposed to accept null to allow a copy of the formatter to be returned reset to the original state of having no resolver fields. The docs say:

        "@param resolverFields the new set of resolver fields, null if no fields"

        which was written to indicate that resetting to null is permitted.

        The fix is to check for null and return a copy of the formatter. Note that there are two variations of the method which need fixing.

        This should be backported to 8u.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                scolebourne Stephen Colebourne
                Reporter:
                scolebourne Stephen Colebourne
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: