Bug 59909 - jdk9's change of locale provider breaks usage of touch
Summary: jdk9's change of locale provider breaks usage of touch
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.9.7
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: 1.9.8
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-28 10:19 UTC by Stefan Bodewig
Modified: 2016-07-31 07:33 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Bodewig 2016-07-28 10:19:23 UTC
Quite a few of our tests break on JDK9 as the default patterns of DateFormat.SHORT have changed. Background: http://openjdk.java.net/jeps/252

* fix the tests by specifying the patterns explicitly
* update the manual and explain the problem, recommend to always use the pattern attribute
Comment 1 Stefan Bodewig 2016-07-28 15:51:25 UTC
Likely also applies to the Date selectors (file and resource) and affects getTimestamp in DefaultLogger.
Comment 2 Stefan Bodewig 2016-07-31 07:33:30 UTC
I've decided to fix the patterns used by touch instead, see git commit 77fbe37

This is as we've explicitly specified the patterns we'd use inside the manual (albeit wrong patterns as we used the wrong case for d, y, h, one instance of m and s) rather then stating we'd use the JDK's default patterns.