[ https://issues.apache.org/jira/browse/NETBEANS-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439916#comment-16439916 ]
Jesse Glick commented on NETBEANS-672: -------------------------------------- Seems to have been caused by missing Maven dependencies, including the superclass ({{FlowExecution}})—the scanning, and this error, had occurred before I had a chance to run a priming build. So error badges in the editor were appropriate; throwing an uncaught {{AssertionError}} was not. > Analyzer error when processing: ... > ----------------------------------- > > Key: NETBEANS-672 > URL: https://issues.apache.org/jira/browse/NETBEANS-672 > Project: NetBeans > Issue Type: Bug > Components: java - Compiler > Reporter: Jesse Glick > Priority: Major > > Classpath scanning seemed to explode on [this > line|https://github.com/jenkinsci/workflow-cps-plugin/blob/564a12c05eb54d5a84062cd3bf1d68deb47e1d9f/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java#L245]: > {code:none} > java.lang.AssertionError: Analyzer error when processing: Map<String, String> > loadedScripts = new HashMap<String, String>() > at com.sun.tools.javac.util.Assert.error(Assert.java:162) > at com.sun.tools.javac.comp.Analyzer.doAnalysis(Analyzer.java:575) > at com.sun.tools.javac.comp.Analyzer$2.flush(Analyzer.java:546) > at com.sun.tools.javac.comp.Analyzer.flush(Analyzer.java:583) > at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1493) > at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1461) > at > com.sun.tools.javac.api.JavacTaskImpl$1.process(JavacTaskImpl.java:497) > at > com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:644) > at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:500) > at > org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.loadTreeFor(TreeLoader.java:190) > at > com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:806) > at > com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:832) > at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:414) > at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:404) > at > org.netbeans.lib.nbjavac.services.NBJavacTrees.getPath(NBJavacTrees.java:69) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolveElementValue(ArithmeticUtilities.java:442) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolve(ArithmeticUtilities.java:490) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitMemberSelect(ArithmeticUtilities.java:390) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitMemberSelect(ArithmeticUtilities.java:197) > at > com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2124) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:241) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitBinary(ArithmeticUtilities.java:526) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitBinary(ArithmeticUtilities.java:197) > at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2005) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:241) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:197) > at > com.sun.source.util.TreeScanner.visitParenthesized(TreeScanner.java:572) > at com.sun.tools.javac.tree.JCTree$JCParens.accept(JCTree.java:1861) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56) > at > org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:234) > at > org.netbeans.modules.java.hints.ArithmeticUtilities.compute(ArithmeticUtilities.java:178) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitConditional(InfiniteRecursion.java:463) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitIf(InfiniteRecursion.java:454) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitIf(InfiniteRecursion.java:227) > at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1439) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:285) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:227) > at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90) > at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:298) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.scan(InfiniteRecursion.java:227) > at com.sun.source.util.TreeScanner.visitBlock(TreeScanner.java:248) > at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1038) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56) > at > org.netbeans.modules.java.hints.bugs.InfiniteRecursion.run(InfiniteRecursion.java:152) > at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > [catch] at > org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:90) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:676) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) > at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90) > at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) > at > org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) > at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) > at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187) > at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:812) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) > at > org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) > at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90) > at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) > at > org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) > at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) > at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187) > at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:812) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) > at > org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) > at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) > at > org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) > at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) > at > com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144) > at > com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:593) > at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:701) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:245) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:228) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:193) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114) > at > org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:65) > at > org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273) > at > org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561) > at > org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786) > 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:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > 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) > {code} > [private > build|https://github.com/jglick/incubator-netbeans/commit/5ae30fabb2195b5837b1b64f83e1808d6e9c65b2] -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists