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.

Bug 241706 - AssertionError at com.sun.tools.javac.util.Assert.error
Summary: AssertionError at com.sun.tools.javac.util.Assert.error
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 14:25 UTC by Jiri Prox
Modified: 2014-02-19 02:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207490


Attachments
stacktrace (4.10 KB, text/plain)
2014-02-11 14:25 UTC, Jiri Prox
Details
dump (5.77 KB, application/octet-stream)
2014-02-11 14:26 UTC, Jiri Prox
Details
Thread dump (34.79 KB, text/plain)
2014-02-16 06:25 UTC, _ gtzabari
Details
Parser dump file (7.93 KB, application/octet-stream)
2014-02-16 06:31 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2014-02-11 14:25:41 UTC
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)
Comment 1 Jiri Prox 2014-02-11 14:25:43 UTC
Created attachment 145044 [details]
stacktrace
Comment 2 Jiri Prox 2014-02-11 14:26:37 UTC
Created attachment 145045 [details]
dump
Comment 3 _ gtzabari 2014-02-16 06:21:48 UTC
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.
Comment 4 _ gtzabari 2014-02-16 06:25:46 UTC
Created attachment 145243 [details]
Thread dump

It happened again, so I'm attaching a thread dump for your review.
Comment 5 _ gtzabari 2014-02-16 06:30:00 UTC
Increasing priority (because this takes down the entire IDE, every time), and attaching a parser dump file for your review.
Comment 6 _ gtzabari 2014-02-16 06:31:48 UTC
Created attachment 145244 [details]
Parser dump file
Comment 7 _ gtzabari 2014-02-16 06:45:26 UTC
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.
Comment 9 _ gtzabari 2014-02-17 15:20:46 UTC
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?)
Comment 10 Dusan Balek 2014-02-17 16:10:52 UTC
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.
Comment 11 Quality Engineering 2014-02-19 02:47:28 UTC
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.