RFR: 8148570: TzdbZoneRulesCompiler.java throws Null Pointer Exception While Compiling and building TZDB data file
Roger Riggs
Roger.Riggs at Oracle.com
Fri Jan 29 18:12:54 UTC 2016
Hi Ramanand,
Is there a specific regression test that can be written for the case?
Otherwise, looks fine.
Roger
On 1/29/2016 12:56 PM, Ramanand Patil wrote:
> 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