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.
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.
- csr for
-
JDK-8341915 The j.u.Formatter doc for TemporalAccessor should be enhanced
-
- Draft
-