commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Manley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1186) NullPointerException in FastDateParser$TimeZoneStrategy
Date Fri, 20 Nov 2015 05:35:11 GMT
Nick Manley created LANG-1186:
---------------------------------

             Summary: 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
            Priority: Minor


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