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

NPE at compilation time

XMLWordPrintable

    • x86
    • windows_8

      FULL PRODUCT VERSION :
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 8.1 PRO

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      *have a compilation error in IntellyJIDEA
      *have the same compilation error using Ant

      A DESCRIPTION OF THE PROBLEM :
      i have tried to compile our project using the latest version of java compiler and had a error

      REGRESSION. Last worked in version 8u25

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run javac on my project :)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      successful build
      ACTUAL -
      unsuccessful build

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Information:Using javac 1.8.0_31 to compile java sources
      Information:java: An exception has occurred in the compiler (1.8.0_31). 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.
      Information:java: java.lang.NullPointerException
      Information:java: at com.sun.tools.javac.code.Types.isConvertible(Types.java:290)
      Information:java: at com.sun.tools.javac.comp.Check.assertConvertible(Check.java:922)
      Information:java: at com.sun.tools.javac.comp.Check.checkMethod(Check.java:876)
      Information:java: at com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:3838)
      Information:java: at com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:3615)
      Information:java: at com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:3522)
      Information:java: at com.sun.tools.javac.comp.Attr.checkMethodId(Attr.java:3501)
      Information:java: at com.sun.tools.javac.comp.Attr.checkId(Attr.java:3488)
      Information:java: at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3370)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
      Information:java: at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      Information:java: at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1843)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
      Information:java: at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:649)
      Information:java: at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1093)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:852)
      Information:java: at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
      Information:java: at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
      Information:java: at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
      Information:java: at com.sun.tools.javac.comp.Attr.visitTry(Attr.java:1372)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCTry.accept(JCTree.java:1173)
      Information:java: at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2407)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1624)
      Information:java: at com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:386)
      Information:java: at com.sun.tools.javac.comp.DeferredAttr$2.complete(DeferredAttr.java:279)
      Information:java: at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:245)
      Information:java: at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:232)
      Information:java: at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:993)
      Information:java: at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:826)
      Information:java: at com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:731)
      Information:java: at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:835)
      Information:java: at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:576)
      Information:java: at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1431)
      Information:java: at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1618)
      Information:java: at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1710)
      Information:java: at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1662)
      Information:java: at com.sun.tools.javac.comp.Resolve$9.doLookup(Resolve.java:2415)
      Information:java: at com.sun.tools.javac.comp.Resolve$BasicLookupHelper.lookup(Resolve.java:3074)
      Information:java: at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3325)
      Information:java: at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2412)
      Information:java: at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2406)
      Information:java: at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3395)
      Information:java: at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3281)
      Information:java: at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:656)
      Information:java: at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1611)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296)
      Information:java: at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1035)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
      Information:java: at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342)
      Information:java: at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252)
      Information:java: at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181)
      Information:java: at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4156)
      Information:java: at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248)
      Information:java: at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
      Information:java: at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
      Information:java: at com.sun.tools.javac.main.Main.compile(Main.java:523)
      Information:java: at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
      Information:java: at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
      Information:java: at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:165)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:380)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:298)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:204)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:176)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1140)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:826)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:894)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:789)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:612)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:352)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:191)
      Information:java: at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:131)
      Information:java: at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:229)
      Information:java: at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
      Information:java: at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:158)
      Information:java: at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
      Information:java: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      Information:java: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      Information:java: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      Information:java: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      Information:java: at java.lang.Thread.run(Thread.java:745)
      Information:java: Errors occurred while compiling module 'main.server'
      Information:19.02.2015 22:23 - Compilation completed with 1 error and 0 warnings in 19 sec
      Error:java: Compilation failed: internal java compiler error

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      could not do it
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      use jdk 8u25

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: