commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1362) Fix tests DateUtilsTest for Java 9 with en_GB locale
Date Sat, 04 Nov 2017 14:43:00 GMT

    [ https://issues.apache.org/jira/browse/LANG-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239041#comment-16239041
] 

ASF GitHub Bot commented on LANG-1362:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/commons-lang/pull/304


> Fix tests DateUtilsTest for Java 9 with en_GB locale
> ----------------------------------------------------
>
>                 Key: LANG-1362
>                 URL: https://issues.apache.org/jira/browse/LANG-1362
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.time.*
>            Reporter: Stephen Colebourne
>            Priority: Minor
>             Fix For: 3.7
>
>
> On Java 9 I see DateUtilsTest fail. This is because "MST7MDT" zone is not formatted as
"MST". I'm unclear as to why this is, but it is not relevant to what the test is trying to
do. As such, I've changed the zone to "America/Denver" and changed the format letter from
"z" to "XXX" to make it more reliable.
> The PR also uses try-finally when setting the default time-zone to avoid pollution of
global state if a test fails (the pollution here made it look like 8 test failures when there
was only in fact 1).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message