ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject JDK9 DateFormat changes
Date Thu, 28 Jul 2016 15:44:41 GMT
Hi all

with JDK9 switching to the "CLDR" locale provider by default[1] the
format of DateFormat.SHORT has changed - which causes <touch> to use a
different default pattern when run on JDK9.

I've opened https://bz.apache.org/bugzilla/show_bug.cgi?id=59909 for
this, but after reading touch's manual page again I'm not sure "document
the default pattern depends on the version of Java" is a good idea
anymore.

The text for the pattern attribute says "Defaults to MM/DD/YYYY HH:MM
AM_or_PM or MM/DD/YYYY HH:MM:SS AM_or_PM" - which indicates we should be
using a (thread-local) SimpleDateFormat rather than rely on the standard
patterns.

What do you think?

     Stefan

[1] http://openjdk.java.net/jeps/252

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message