RFR: 8148570: TzdbZoneRulesCompiler.java throws Null Pointer Exception While Compiling and building TZDB data file

Ramanand Patil ramanand.patil at oracle.com
Fri Jan 29 17:56:25 UTC 2016


HI all,

Please review this trivial fix for Bug  - https://bugs.openjdk.java.net/browse/JDK-8148570

Bug Description - While compiling and building TZDB data file(tzdata2016a) when transition rule(for Iran) doesn't have the day-of-week data a null pointer exception is thrown.

Webrev - http://cr.openjdk.java.net/~rpatil/8148570/webrev.00/

Fix - While getting value from DayOfWeek, -1 is returned if the DayOfWeek is null. The reason to return "-1" being, the same value is checked later while getting day-of-week byte (dowbyte) at line no. 251, ZoneRules.java.

 

Regards,

Ramanand.

 

 



More information about the core-libs-dev mailing list