JDK-8054660 : Compiler Error com.sun.tools.javac.comp.Infer$GraphStrategy$NodeNotFoundExcep
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8u11
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux_ubuntu
  • CPU: x86_64
  • Submitted: 2014-08-08
  • Updated: 2015-07-15
  • Resolved: 2014-09-03
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux isdeblnwl040 3.2.0-67-generic #101-Ubuntu SMP Tue Jul 15 17:46:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
Hi!
I want to migrate a java application from java 1.7 to 1.8.
Compiling it with java 1.8 and -source 1.7 and  -target 1.7 works.
But with -source 1.8 and  -target 1.8 let the compiler crashs.

Here is the stacktrace:

Using javac 1.8.0_11 to compile java sources
java: An exception has occurred in the compiler (1.8.0_11). 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: com.sun.tools.javac.comp.Infer$GraphStrategy$NodeNotFoundException
java: 	at com.sun.tools.javac.comp.Infer$LeafSolver.pickNode(Infer.java:1047)
java: 	at com.sun.tools.javac.comp.Infer$GraphSolver.solve(Infer.java:1415)
java: 	at com.sun.tools.javac.comp.Infer$InferenceContext.solve(Infer.java:2030)
java: 	at com.sun.tools.javac.comp.Infer$InferenceContext.solve(Infer.java:2022)
java: 	at com.sun.tools.javac.comp.Infer$InferenceContext.solve(Infer.java:2037)
java: 	at com.sun.tools.javac.comp.Infer.instantiateMethod(Infer.java:185)
java: 	at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:566)
java: 	at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1418)
java: 	at com.sun.tools.javac.comp.Resolve.findFun(Resolve.java:1834)
java: 	at com.sun.tools.javac.comp.Resolve$8.doLookup(Resolve.java:2365)
java: 	at com.sun.tools.javac.comp.Resolve$BasicLookupHelper.lookup(Resolve.java:3056)
java: 	at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3307)
java: 	at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3292)
java: 	at com.sun.tools.javac.comp.Resolve.resolveMethod(Resolve.java:2361)
java: 	at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:3151)
java: 	at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2005)
java: 	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:596)
java: 	at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1828)
java: 	at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1459)
java: 	at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3230)
java: 	at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1891)
java: 	at com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:372)
java: 	at com.sun.tools.javac.comp.DeferredAttr$2.complete(DeferredAttr.java:265)
java: 	at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:231)
java: 	at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:218)
java: 	at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:976)
java: 	at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:822)
java: 	at com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:733)
java: 	at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:831)
java: 	at com.sun.tools.javac.comp.Infer.instantiateMethod(Infer.java:162)
java: 	at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:638)
java: 	at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1078)
java: 	at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:846)
java: 	at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:665)
java: 	at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:681)
java: 	at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1127)
java: 	at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:903)
java: 	at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1020)
java: 	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:772)
java: 	at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4305)
java: 	at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4215)
java: 	at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4149)
java: 	at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4124)
java: 	at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1251)
java: 	at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:904)
java: 	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:863)
java: 	at com.sun.tools.javac.main.Main.compile(Main.java:523)
java: 	at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
java: 	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
java: 	at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:165)
java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:407)
java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:304)
java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:210)
java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:182)
java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1106)
java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:814)
java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:862)
java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:777)
java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:600)
java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:352)
java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:184)
java: 	at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129)
java: 	at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:224)
java: 	at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
java: 	at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:133)
java: 	at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
java: 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
java: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java: 	at java.lang.Thread.run(Thread.java:745)

Information:Compilation completed with 1 error and 130 warnings in 28 sec
Information:1 error
Information:130 warnings
Error:java: Compilation failed: internal java compiler error

REGRESSION.  Last worked in version 7u40


REPRODUCIBILITY :
This bug can be reproduced always.


Comments
No response was received from the submitter. As there is not enough information in this report to make headway it is being closed. If this issue is seen, please open a new report with all necessary information. This report ID can be referenced.
03-09-2014

I have sent a mail to the user asking for more information
08-08-2014

Reporter should add more information about how to reproduce the bug. Closing it as incomplete in the meantime.
08-08-2014