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 236602 - AssertionError at com.sun.tools.javac.util.Assert.error
Summary: AssertionError at com.sun.tools.javac.util.Assert.error
Status: VERIFIED 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: NO74
Depends on:
Blocks:
 
Reported: 2013-10-01 13:55 UTC by Vladimir Riha
Modified: 2013-12-04 16:06 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204301


Attachments
stacktrace (3.52 KB, text/plain)
2013-10-01 13:55 UTC, Vladimir Riha
Details
stacktrace (5.13 KB, text/plain)
2013-10-01 15:54 UTC, Tomas Stupka
Details
stacktrace (4.18 KB, text/plain)
2013-10-04 19:52 UTC, Michel Graciano
Details
Participant.dump (22.50 KB, application/octet-stream)
2013-10-07 16:59 UTC, _ gtzabari
Details
stacktrace (4.42 KB, text/plain)
2013-10-08 04:13 UTC, _ gtzabari
Details
stacktrace (3.62 KB, text/plain)
2013-10-08 18:04 UTC, javydreamercsw
Details
stacktrace (5.23 KB, text/plain)
2013-10-09 13:49 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-10-01 13:55:07 UTC
This bug was originally marked as duplicate of bug 216877, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201310010002)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b13
OS: Linux

User Comments:
vriha: editing file from HG repo while background scanning was on




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.util.Bits.incl(Bits.java:205)
   at com.sun.tools.javac.comp.Flow$AssignAnalyzer.checkInit(Flow.java:1565)
   at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitIdent(Flow.java:2277)
   at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1995)
Comment 1 Vladimir Riha 2013-10-01 13:55:10 UTC
Created attachment 140691 [details]
stacktrace
Comment 2 Tomas Stupka 2013-10-01 15:54:49 UTC
Created attachment 140697 [details]
stacktrace

occurs on every edit
Comment 3 Michel Graciano 2013-10-04 19:52:01 UTC
Created attachment 140823 [details]
stacktrace

Editing a NB source file and saving it.
Comment 4 _ gtzabari 2013-10-07 16:59:22 UTC
Created attachment 140867 [details]
Participant.dump

Please let me know if Participant.dump helps you reproduce this issue.
Comment 5 _ gtzabari 2013-10-08 04:11:05 UTC
Increasing priority as this issue occurs very frequently with no known workaround.
Comment 6 _ gtzabari 2013-10-08 04:12:21 UTC
Also, I am fairly certain that this regression was introduced over the past 2 weeks. Older dev builds didn't have this problem.
Comment 7 _ gtzabari 2013-10-08 04:13:06 UTC
Created attachment 140875 [details]
stacktrace

Typed text in editor.
Comment 8 javydreamercsw 2013-10-08 18:04:09 UTC
Created attachment 140900 [details]
stacktrace

Typing in editor. IDE was open for over an hour over lunch.
Comment 9 Ralph Ruijs 2013-10-09 13:49:12 UTC
Created attachment 140947 [details]
stacktrace

Writing code.
Comment 10 _ gtzabari 2013-10-10 22:08:31 UTC
I stopped submitting reports for this issue using the exception reporter because it occurs too frequently (once every 10 seconds using build 201310050001). Increasing to P1 :)

In the meantime, I'm going to try upgrading to a newer version.
Comment 11 _ gtzabari 2013-10-10 22:25:50 UTC
FYI, I am able to reproduce this with today's build (201310070001) as well.
Comment 12 David Strupl 2013-10-11 05:21:56 UTC
Guys, is this present in 7.4? I hope not! Please speak up. If not I will update the version field .. Thanks for quick info.
Comment 13 Vladimir Riha 2013-10-11 05:51:27 UTC
I haven't seen it in 7.4 even with assertions enabled but I don't have exact steps to reproduce...
Comment 14 David Strupl 2013-10-11 07:17:55 UTC
Ok, let's treat it as not present in 7.4. If it turns not to be the case let's change the Version and Keywords back.
Comment 15 Dusan Balek 2013-10-11 13:31:17 UTC
Finally able to reproduce it. Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/9ff491941f04
Comment 16 Quality Engineering 2013-10-16 02:19:15 UTC
Integrated into 'main-silver', will be available in build *201310160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9ff491941f04
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #236602: AssertionError at com.sun.tools.javac.util.Assert.error - fixed.
Comment 17 Vladimir Riha 2013-12-04 16:06:35 UTC
Cannot reproduce anymore, verified. Thank you