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

The j.u.Formatter doc for TemporalAccessor should be enhanced

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None
    • Fix Understood

      The j.u.Formatter doc fails to mention that not all subtypes of TemporalAccessor carry timezone related information.

      The conversions %tz, %tZ, and %tc (and %Tz, %TZ, and %Tc) need timezone info. When applying them on a LocalDateTime, for example, a runtime exception is (correctly) thrown.

      The doc should be enhanced.

            rgiulietti Raffaello Giulietti
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: