This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201402070001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b123 OS: Windows 7 User Comments: jiriprox: AE when expanding code template Stacktrace: java.lang.AssertionError at com.sun.tools.javac.util.Assert.error(Assert.java:126) at com.sun.tools.javac.util.Assert.check(Assert.java:45) at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitLambda(Flow.java:1304) at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1624) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:409)
Created attachment 145044 [details] stacktrace
Created attachment 145045 [details] dump
After reporting this bug, the IDE became non-responsive forcing me to terminate Netbeans (some task was running endlessly on the EDT). I don't know whether it is related to this issue or not, but I thought it's worth mentioning.
Created attachment 145243 [details] Thread dump It happened again, so I'm attaching a thread dump for your review.
Increasing priority (because this takes down the entire IDE, every time), and attaching a parser dump file for your review.
Created attachment 145244 [details] Parser dump file
This parsing error is caused by the fact that the code invokes "continue" from within a lambda expression instead of "return". This should be flagged as a compiler error, but instead it triggers this parsing bug.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/7c2993e6767e http://hg.netbeans.org/nb-javac/rev/8d5a70ef7ef5
Dusan, Before closing this bug, I suggest fixing the secondary bug which is: why does Netbeans crash when javac throws AssertionError? (Or should I file a separate bug for that?)
Unfortunately, I was not able to reproduce the NB crash (only the AssertionError itself). So, if you have a reproducible test case for the crash, please, file a separate bug for it. Thanks.
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7c2993e6767e User: Dusan Balek <dbalek@netbeans.org> Log: Issue #241706: AssertionError at com.sun.tools.javac.util.Assert.error - fixed.