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 179621 - AssertionError at com.sun.tools.javac.comp.Attr.attribClassBody
Summary: AssertionError at com.sun.tools.javac.comp.Attr.attribClassBody
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 164541 197752 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-18 04:46 UTC by fabriziogiudici
Modified: 2011-10-20 14:27 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164380


Attachments
stacktrace (3.48 KB, text/plain)
2010-01-18 04:46 UTC, fabriziogiudici
Details
stacktrace (3.28 KB, text/plain)
2010-08-31 14:27 UTC, Sergey Petrov
Details
stacktrace (5.08 KB, text/plain)
2011-02-24 16:39 UTC, simpatico
Details
stacktrace (5.41 KB, text/plain)
2011-02-24 16:42 UTC, simpatico
Details
stacktrace (6.23 KB, text/plain)
2011-05-09 17:15 UTC, Jesse Glick
Details
Contents of $userdir/var/cache/index/s883/ (908.59 KB, application/octet-stream)
2011-07-05 13:10 UTC, Jesse Glick
Details
stacktrace (4.46 KB, text/plain)
2011-09-20 09:37 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fabriziogiudici 2010-01-18 04:46:41 UTC
This bug was originally marked as duplicate of bug 164541, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125
OS: Mac OS X, 10.5.8, x86_64

User Comments:
fabriziogiudici: Switching from a project group to another.



Stacktrace: 
java.lang.AssertionError
   at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2750)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2732)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2685)
   at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2663)
   at com.sun.tools.javac.comp.Attr.visitClassDef(Attr.java:587)
   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:587)
Comment 1 fabriziogiudici 2010-01-18 04:46:46 UTC
Created attachment 93369 [details]
stacktrace
Comment 2 Sergey Petrov 2010-08-31 14:27:45 UTC
Created attachment 101781 [details]
stacktrace

with https://netbeans.org/bugzilla/show_bug.cgi?id=188817 investigation,
have first entity->some class->mapped superclass.
now change "some class" to mapped superclass and save. have assertion.
Comment 3 Jan Lahoda 2010-12-21 09:06:16 UTC
*** Bug 164541 has been marked as a duplicate of this bug. ***
Comment 4 simpatico 2011-02-24 16:39:38 UTC
Created attachment 106418 [details]
stacktrace
Comment 5 simpatico 2011-02-24 16:42:39 UTC
Created attachment 106420 [details]
stacktrace
Comment 6 Dusan Balek 2011-04-14 19:06:40 UTC
*** Bug 197752 has been marked as a duplicate of this bug. ***
Comment 7 Jesse Glick 2011-05-09 17:15:29 UTC
Created attachment 108198 [details]
stacktrace
Comment 8 Jesse Glick 2011-07-05 13:10:01 UTC
I am getting this constantly whenever I try to work on apisupport.project. I presume something is broken in my cache directory. I will try to delete that part of the cache, making a backup first for analysis.
Comment 9 Jesse Glick 2011-07-05 13:10:11 UTC
Created attachment 109234 [details]
Contents of $userdir/var/cache/index/s883/
Comment 10 Marian Mirilovic 2011-08-17 10:22:04 UTC
143 dups ... reported also against NB 7.0.1
Comment 11 Dusan Balek 2011-09-01 14:03:09 UTC
Do you have a reproducible test case?
Comment 12 Exceptions Reporter 2011-09-08 16:07:14 UTC
This bug already has 150 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=164380
Comment 13 Dusan Balek 2011-09-09 10:07:53 UTC
From the exception reports it seems that two different elements are created for the same class under some circumstances. Hard to fix without a reproducible test case.
Comment 14 Egor Ushakov 2011-09-20 09:37:02 UTC
Created attachment 110904 [details]
stacktrace

removed a file outside the ide
Comment 16 Quality Engineering 2011-10-20 14:27:04 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7a9f5e3b0ade
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #179621, #193492, and #203871 fixed.