JDK-6178395 : javazic fails with tzdata2004e
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-10-13
  • Updated: 2010-07-29
  • Resolved: 2004-10-18
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.
Other JDK 6
5.0u4Fixed 6 b09Fixed
Related Reports
Relates :  
Description
javazic fails with tzdata2004e.

In southamerica of Olson's data, the following change causes NPE.
I confirmed that other changes in tz2004e have nothing to do with NPE.

309c323,324
<                       -4:00   -       WART    2004 Oct 17
---
>                       -4:00   -       WART    2004 Sep 26
====================================================================
# Mendoza (MZ)
Zone America/Argentina/Mendoza -4:35:16 - LMT   1894 Oct 31
                        -4:16:48 -      CMT     1920 May
                        -4:00   -       ART     1930 Dec
                        -4:00   Arg     AR%sT   1969 Oct  5
                        -3:00   Arg     AR%sT   1990 Mar  4
                        -4:00   -       WART    1990 Oct 15
                        -4:00   1:00    WARST   1991 Mar  1
                        -4:00   -       WART    1991 Oct 15
                        -4:00   1:00    WARST   1992 Mar  1
                        -4:00   -       WART    1992 Oct 18
                        -3:00   Arg     AR%sT   1999 Oct  3
                        -4:00   Arg     AR%sT   2000 Mar  3
                        -3:00   -       ART     2004 May 23
                        -4:00   -       WART    2004 Sep 26    <---------
                        -3:00   -       ART
====================================================================
rm -f ../../../build/solaris-sparc/tmp/sun/sun.tools.javazic/.classes.list
if [ -s ../../../build/solaris-sparc/tmp/sun/sun.tools.javazic/.classes.list ] ; \
then ../../../build/solaris-sparc/bin/javac  -J-XX:ThreadStackSize=768 -J-Xms64m -J-Xmx256m -classpath ../../../build/solaris-sparc/classes -bootclasspath "../../../build/solaris-sparc/lib/jce.jar:../../../build/solaris-sparc/lib/jsse.jar" -sourcepath "../../../build/solaris-sparc/gensrc:../../../src/solaris/classes:../../../src/share/classes" -d ../../../build/solaris-sparc/classes -encoding ascii   -source 1.5 -d ../../../build/solaris-sparc/tmp/sun/sun.tools.javazic \
     ; \
fi
rm -f -r ../../../build/solaris-sparc/tmp/sun/sun.tools.javazic/zi
../../../build/solaris-sparc/bin/java -classpath ../../../build/solaris-sparc/tmp/sun/sun.tools.javazic sun.tools.javazic.Main -V "`cat ./tzdata/VERSION`" -d ../../../build/solaris-sparc/tmp/sun/sun.tools.javazic/zi ./tzdata/africa ./tzdata/antarctica ./tzdata/asia ./tzdata/australasia ./tzdata/europe ./tzdata/northamerica ./tzdata/pacificnew ./tzdata/southamerica ./tzdata/systemv ./tzdata/backward ./tzdata/etcetera ./tzdata/solar87 ./tzdata/solar88 ./tzdata/solar89 ./tzdata/systemv ./tzdata_jdk/gmt ./tzdata_jdk/jdk11_backward
Exception in thread "main" java.lang.NullPointerException
        at sun.tools.javazic.Mappings.resolve(Mappings.java:122)
        at sun.tools.javazic.Main.compile(Main.java:115)
        at sun.tools.javazic.Main.main(Main.java:137)
gnumake: *** [../../../build/solaris-sparc/tmp/sun/sun.tools.javazic/zi/ZoneInfoMappings] Error 1
====================================================================
###@###.### 10/13/04 12:21 GMT

Comments
EVALUATION Unlike previous tzdata versions, Mappings' excludeList is null with tzdata2000e. We should check if excludeList is null before calling excludeList.contains(). ###@###.### 10/15/04 07:51 GMT This bug affects zone info compilation even with tzdata2004d or earlier after 2004-10-17T00:00:00-0400. ###@###.### 10/18/04 02:24 GMT
15-10-2004