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

NullPointerException compiling JDK8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 7
    • tools
    • x86
    • linux

      FULL PRODUCT VERSION :
      java version "1.7.0_04-ea"
      Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b06)
      Java HotSpot(TM) Server VM (build 23.0-b09, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux 2.3.5

      A DESCRIPTION OF THE PROBLEM :
      When compiling OpenJDK8 with jdk7, I got the following Exception:

      make[4]: Entering directory `/home/ce/jdk/make/mkdemo/applets/ArcTest'
      /bin/mkdir -p ../../../../build/linux-i586/democlasses/demo/applets/ArcTest/jar_image
      /opt/Programme/jdk7/bin/javac -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -Xlint:-path -source 7 -target 7 -encoding ascii "-Xbootclasspath:../../../../build/linux-i586/classes" -d ../../../../build/linux-i586/democlasses/demo/applets/ArcTest/jar_image -sourcepath ../../../../build/linux-i586/democlasses/demo/applets/ArcTest/src @../../../../build/linux-i586/democlasses/demo/applets/ArcTest/javac_input.txt
      An exception has occurred in the compiler (1.7.0_04-ea). 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 com.sun.tools.javac.code.Type$ClassType.isErroneous(Type.java:678)
      at com.sun.tools.javac.code.Symbol.isInheritedIn(Symbol.java:383)
      at com.sun.tools.javac.code.Symbol.isMemberOf(Symbol.java:323)
      at com.sun.tools.javac.comp.TransTypes.addBridgeIfNeeded(TransTypes.java:282)
      at com.sun.tools.javac.comp.TransTypes.addBridges(TransTypes.java:389)
      at com.sun.tools.javac.comp.TransTypes.addBridges(TransTypes.java:403)
      at com.sun.tools.javac.comp.TransTypes.translateClass(TransTypes.java:878)
      at com.sun.tools.javac.comp.TransTypes.visitClassDef(TransTypes.java:446)
      at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:591)
      at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:58)
      at com.sun.tools.javac.comp.TransTypes.translate(TransTypes.java:425)
      at com.sun.tools.javac.comp.TransTypes.translateTopLevelClass(TransTypes.java:898)
      at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1375)
      at com.sun.tools.javac.main.JavaCompiler.desugar(JavaCompiler.java:1271)
      at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:870)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:829)
      at com.sun.tools.javac.main.Main.compile(Main.java:419)
      at com.sun.tools.javac.main.Main.compile(Main.java:333)
      at com.sun.tools.javac.main.Main.compile(Main.java:324)
      at com.sun.tools.javac.Main.compile(Main.java:76)
      at com.sun.tools.javac.Main.main(Main.java:61)



      REPRODUCIBILITY :
      This bug can be reproduced often.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: