You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/05/28 16:43:12 UTC
[jira] [Updated] (LANG-1186) NullPointerException in
FastDateParser$TimeZoneStrategy
[ https://issues.apache.org/jira/browse/LANG-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher updated LANG-1186:
------------------------------------
Fix Version/s: (was: 3.x)
> NullPointerException in FastDateParser$TimeZoneStrategy
> -------------------------------------------------------
>
> Key: LANG-1186
> URL: https://issues.apache.org/jira/browse/LANG-1186
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.time.*
> Reporter: Nick Manley
> Assignee: Charles Honton
> Priority: Minor
> Fix For: 3.5
>
>
> Java 8u60 has a change where {{DateFormatSymbols.getZoneStrings}} returns arrays with 7 elements instead of 5 like it previously had. For some locales, the additional two elements are null.
> {code}
> Running org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.597 sec <<< FAILURE! - in org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest
> testTimeZoneStrategyPattern(org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest) Time elapsed: 0.597 sec <<< ERROR!
> java.lang.NullPointerException: null
> at org.apache.commons.lang3.time.FastDateParser$TimeZoneStrategy.<init>(FastDateParser.java:856)
> at org.apache.commons.lang3.time.FastDateParser.getLocaleSpecificStrategy(FastDateParser.java:647)
> at org.apache.commons.lang3.time.FastDateParser.getStrategy(FastDateParser.java:616)
> at org.apache.commons.lang3.time.FastDateParser.access$100(FastDateParser.java:74)
> at org.apache.commons.lang3.time.FastDateParser$StrategyParser.letterPattern(FastDateParser.java:230)
> at org.apache.commons.lang3.time.FastDateParser$StrategyParser.getNextStrategy(FastDateParser.java:214)
> at org.apache.commons.lang3.time.FastDateParser.init(FastDateParser.java:161)
> at org.apache.commons.lang3.time.FastDateParser.<init>(FastDateParser.java:147)
> at org.apache.commons.lang3.time.FastDateParser.<init>(FastDateParser.java:108)
> at org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest.testTimeZoneStrategyPattern(FastDateParser_TimeZoneStrategyTest.java:31)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)