JDK-8225580 : tzdata2018i integration causes test failures on jdk-13
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.time
  • Affected Version: 13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-06-11
  • Updated: 2021-01-12
  • Resolved: 2019-07-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 Other
11.0.5Fixed 13Fixed 14 b05Fixed openjdk7uFixed
Related Reports
Blocks :  
Relates :  
Description
I have tried integrating tzdata2018i into jdk13 and found below tests are failing post integration.

java/time/test/java/time/format/TestZoneTextPrinterParser.java	
java/time/tck/java/time/format/TCKDateTimeFormatterBuilder.java	
java/text/Format/DateFormat/SDFTCKZoneNamesTest.java	
java/text/Format/DateFormat/Bug8081794.java	
java/text/Format/DateFormat/Bug4322313.java
sun/util/resources/cldr/Bug8202764.java	
java/util/TimeZone/CLDRDisplayNamesTest.java

With the same patch jdk-12u and 11u all the tests are passing.

Below are the failures details:
1. java/time/test/java/time/format/TestZoneTextPrinterParser.java:
test test.java.time.format.TestZoneTextPrinterParser.test_ParseText(): failure
java.time.format.DateTimeParseException: Text 'America/Los_Angeles' could not be parsed: null
	at java.base/java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:2020)
	at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1955)
	at test.java.time.format.TestZoneTextPrinterParser.parse(TestZoneTextPrinterParser.java:213)
	at test.java.time.format.TestZoneTextPrinterParser.parseText(TestZoneTextPrinterParser.java:199)
	at test.java.time.format.TestZoneTextPrinterParser.test_ParseText(TestZoneTextPrinterParser.java:122)
...
Caused by: java.lang.NullPointerException
	at java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.prefixLength(DateTimeFormatterBuilder.java:4532)
	at java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.add0(DateTimeFormatterBuilder.java:4401)
	at java.base/java.time.format.DateTimeFormatterBuilder$PrefixTree.add(DateTimeFormatterBuilder.java:4396)
	at java.base/java.time.format.DateTimeFormatterBuilder$ZoneTextPrinterParser.getTree(DateTimeFormatterBuilder.java:4143)
	at java.base/java.time.format.DateTimeFormatterBuilder$ZoneIdPrinterParser.parse(DateTimeFormatterBuilder.java:4254)
	at java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2374)
	at java.base/java.time.format.DateTimeFormatter.parseUnresolved0(DateTimeFormatter.java:2110)
	at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2039)
	at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1951)
	... 32 more


2. java/time/tck/java/time/format/TCKDateTimeFormatterBuilder.java:
java.lang.Exception: failures: 4
	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
	at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:830)

3. java/text/Format/DateFormat/SDFTCKZoneNamesTest.java:
java.lang.RuntimeException: FAILED
	at SDFTCKZoneNamesTest.SimpleDateFormat0062(SDFTCKZoneNamesTest.java:365)
	at SDFTCKZoneNamesTest.lambda$main$0(SDFTCKZoneNamesTest.java:300)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at SDFTCKZoneNamesTest.main(SDFTCKZoneNamesTest.java:297)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:830)

4. java/text/Format/DateFormat/Bug8081794.java:
java.lang.NullPointerException
	at java.base/java.text.SimpleDateFormat.matchZoneString(SimpleDateFormat.java:1695)
	at java.base/java.text.SimpleDateFormat.subParseZoneString(SimpleDateFormat.java:1763)
	at java.base/java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:2169)
	at java.base/java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1541)
	at Bug8081794.main(Bug8081794.java:42)

5. java/text/Format/DateFormat/Bug4322313.java:
Parse  Error [Locale=en_US, z/"G M T"] Unexpected Exception occurred: java.lang.NullPointerException
	Parse  Error [Locale=en_US, z/"1342"] Unexpected Exception occurred: java.lang.NullPointerException
	Parse  Error [Locale=en_US, z/"G M T"] Invalid exception occurred: java.lang.NullPointerException
	Parse  Error [Locale=en_US, z/"1342"] Invalid exception occurred: java.lang.NullPointerException
	Parse  Error [Locale=en_US, Z/"G M T"] Unexpected Exception occurred: java.lang.NullPointerException
	Parse  Error [Locale=en_US, Z/"1342"] Unexpected Exception occurred: java.lang.NullPointerException
	Parse  Error [Locale=en_US, Z/"G M T"] Invalid exception occurred: java.lang.NullPointerException
	Parse  Error [Locale=en_US, Z/"1342"] Invalid exception occurred: java.lang.NullPointerException
java.lang.RuntimeException: Uncaught exception thrown in test method Test4322313
	at IntlTest.errImpl(IntlTest.java:198)
	at IntlTest.errln(IntlTest.java:185)
	at IntlTest.run(IntlTest.java:126)
	at Bug4322313.main(Bug4322313.java:363)


6. sun/util/resources/cldr/Bug8202764.java:
Asia/Qostanay
test Bug8202764.testAliasedTZs(): failure
java.lang.AssertionError: expected [Qostanay Time] but found [null]
	at org.testng.Assert.fail(Assert.java:94)
	at org.testng.Assert.failNotEquals(Assert.java:496)
	at org.testng.Assert.assertEquals(Assert.java:116)
	at org.testng.Assert.assertEquals(Assert.java:178)
	at org.testng.Assert.assertEquals(Assert.java:188)
	at Bug8202764.lambda$testAliasedTZs$0(Bug8202764.java:55)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at Bug8202764.testAliasedTZs(Bug8202764.java:52)

7. java/util/TimeZone/CLDRDisplayNamesTest.java:
java.lang.NullPointerException
	at CLDRDisplayNamesTest.lambda$main$2(CLDRDisplayNamesTest.java:148)
	at java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
	at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
	at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
	at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
	at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:528)
	at CLDRDisplayNamesTest.lambda$main$3(CLDRDisplayNamesTest.java:148)
....


Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/0f1e29c77e50 User: rpatil Date: 2019-07-10 04:14:33 +0000
10-07-2019