RFR 9: 8085887 : java.time.format.FormatStyle.LONG or FULL causes unchecked exception

Roger Riggs Roger.Riggs at Oracle.com
Fri Mar 11 20:19:35 UTC 2016


Please review java.time javadoc improvements to highlight a common 
misunderstanding
about formatting elements that require a timezone in addition to the time.
When using locale specific formatting, it may work if the locale 
formatting does not
require a timezone or fail if the locale formatting requires a timezone 
and a timezone is not provided.

ZoneDateTime or OffsetDateTime types should be used when formatting with 
locale
dependent formatters.

8085887 : java.time.format.FormatStyle.LONG or FULL causes unchecked 
exception

Webrev:
   http://cr.openjdk.java.net/~rriggs/webrev-format-8085887/

Thanks, Roger




More information about the core-libs-dev mailing list