commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1186) NullPointerException in FastDateParser$TimeZoneStrategy
Date Sat, 28 May 2016 16:44:12 GMT

     [ https://issues.apache.org/jira/browse/LANG-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Schumacher updated LANG-1186:
------------------------------------
    Affects Version/s: 3.4

> 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.*
>    Affects Versions: 3.4
>            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)

Mime
View raw message