Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043931

Exception in javac on SPARC T7 system: NullPointerException: at HashMap.java:471

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7u55, 8
    • hotspot
    • This problem was uncovered on Solaris 11.2, but now this system runs Solaris 12, and the bug is still there.

    • 7
    • sparc_64
    • solaris_11

      Steps to reproduce:

      $ ssh $HOST # please, contact me (nikolay.molchanov@ORACLE.COM) to get access to the system

      $ cd /opt/BUGS/javac-bug1/

      $ /ws/set/mt/integration/Tools/JDK/sparc-S2/j2sdk1.7.0/bin/javac Test.java

      An exception has occurred in the compiler (1.7.0_55). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.NullPointerException
      at java.util.HashMap.getEntry(HashMap.java:471)
      at java.util.HashMap.get(HashMap.java:421)
      at com.sun.tools.javac.file.ZipFileIndex.getRelativeDirectory(ZipFileIndex.java:1052)
      at com.sun.tools.javac.file.ZipFileIndex.access$700(ZipFileIndex.java:80)
      at com.sun.tools.javac.file.ZipFileIndex$ZipDirectory.readEntry(ZipFileIndex.java:645)
      at com.sun.tools.javac.file.ZipFileIndex$ZipDirectory.buildIndex(ZipFileIndex.java:580)
      at com.sun.tools.javac.file.ZipFileIndex$ZipDirectory.access$000(ZipFileIndex.java:484)
      at com.sun.tools.javac.file.ZipFileIndex.checkIndex(ZipFileIndex.java:192)
      at com.sun.tools.javac.file.ZipFileIndex.<init>(ZipFileIndex.java:137)
      at com.sun.tools.javac.file.ZipFileIndexCache.getZipFileIndex(ZipFileIndexCache.java:100)
      at com.sun.tools.javac.file.JavacFileManager.openArchive(JavacFileManager.java:559)
      at com.sun.tools.javac.file.JavacFileManager.openArchive(JavacFileManager.java:482)
      at com.sun.tools.javac.file.JavacFileManager.listContainer(JavacFileManager.java:368)
      at com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:644)
      at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2446)
      at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2143)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:421)
      at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:298)
      at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:272)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:484)
      at com.sun.tools.javac.comp.Enter.main(Enter.java:469)
      at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:929)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
      at com.sun.tools.javac.main.Main.compile(Main.java:439)
      at com.sun.tools.javac.main.Main.compile(Main.java:353)
      at com.sun.tools.javac.main.Main.compile(Main.java:342)
      at com.sun.tools.javac.main.Main.compile(Main.java:333)
      at com.sun.tools.javac.Main.compile(Main.java:76)
      at com.sun.tools.javac.Main.main(Main.java:61)

      This problem also exists in jdk 8. This is a regression, because
      the same file can be compiled without any errors using javac from jdk 1.6:

      $ /ws/set/mt/integration/Tools/JDK/sparc-S2/j2sdk1.6.0/bin/javac Test.java
      $

      In other tests we see another exception: ArrayStoreException: at HashMap.java:603

            poonam Poonam Bajaj Parhar
            nmolchan Nikolay Molchanov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: