Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
10.0
-
None
-
None
-
jdk 10.0.2
Description
The parser explodes when trying to parse the attached code file. Here is the stack trace:
"Editor Parsing Loop (incubator-netbeans-release-380-on-20181217)" at com.sun.tools.javac.util.Assert.error(Assert.java:155) at com.sun.tools.javac.util.Assert.check(Assert.java:46) at com.sun.tools.javac.comp.DeferredAttr$2$1.setOverloadKind(DeferredAttr.java:177) at com.sun.tools.javac.comp.ArgumentAttr.visitReference(ArgumentAttr.java:283) at com.sun.tools.javac.tree.JCTree$JCMemberReference.accept(JCTree.java:2196) at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:197) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:671) at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:782) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2062) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3826) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2116) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2079) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:505) at com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:486) at com.sun.tools.javac.comp.ArgumentAttr.lambda$processArg$0(ArgumentAttr.java:220) at com.sun.tools.javac.comp.ArgumentAttr$$Lambda$668.334963799.get at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:242) at com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:219) at com.sun.tools.javac.comp.ArgumentAttr.visitApply(ArgumentAttr.java:307) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640) at com.sun.tools.javac.comp.ArgumentAttr.attribArg(ArgumentAttr.java:197) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:671) at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:782) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2062) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.visitReturn(Attr.java:1931) at com.sun.tools.javac.tree.JCTree$JCReturn.accept(JCTree.java:1552) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:749) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:773) at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2751) at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1813) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.DeferredAttr$4.complete(DeferredAttr.java:379) at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:340) at com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:326) at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:1062) at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:889) at com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:777) at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:898) at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:620) at com.sun.tools.javac.comp.Resolve.checkMethod(Resolve.java:646) at com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:4378) at com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:4166) at com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:4067) at com.sun.tools.javac.comp.Attr.checkId(Attr.java:4056) at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3949) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2116) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2079) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1640) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.visitTypeCast(Attr.java:3689) at com.sun.tools.javac.tree.JCTree$JCTypeCast.accept(JCTree.java:2024) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.visitReturn(Attr.java:1931) at com.sun.tools.javac.tree.JCTree$JCReturn.accept(JCTree.java:1552) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:749) at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:773) at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1350) at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:73) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:749) at org.netbeans.modules.java.source.nbjavac.parsing.PartialReparserService.reattrMethodBody(PartialReparserService.java:180) at org.netbeans.modules.java.source.nbjavac.parsing.PartialReparserImpl.reparseMethod(PartialReparserImpl.java:164) at org.netbeans.modules.java.source.parsing.JavacParser.parseImpl(JavacParser.java:399) at org.netbeans.modules.java.source.parsing.JavacParser.parse(JavacParser.java:332) at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:598) at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:228) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
It appears to be happening when it is trying to resolve key::isAssignableFrom. The file should be all you need to reproduce the issue. Let me know if you need anything else.