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 250325 - AssertionError: T::foo in EnumForwardDeclarationImpl.<init>(EnumForwardDeclarationImpl.java:108)
Summary: AssertionError: T::foo in EnumForwardDeclarationImpl.<init>(EnumForwardDecl...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 08:28 UTC by Vladimir Kvashin
Modified: 2015-02-19 09:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2015-02-10 08:28:39 UTC
I found some assertions in console (when parsing llvm34).
This means that for affected files code model is absent at all.


java.lang.AssertionError: T::foo
    at org.netbeans.modules.cnd.modelimpl.csm.EnumForwardDeclarationImpl.<init>(EnumForwardDeclarationImpl.java:108)
    at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl$EnumMemberForwardDeclaration.<init>(ClassImpl.java:1540)
    at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl$EnumMemberForwardDeclaration.create(ClassImpl.java:1546)
    at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl$ClassAstRenderer.renderEnumForwardDeclaration(ClassImpl.java:1104)
    at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl$ClassAstRenderer.render(ClassImpl.java:767)
    at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl.render(ClassImpl.java:181)
    at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl.init(ClassImpl.java:142)
    at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl.create(ClassImpl.java:228)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.createClass(AstRenderer.java:1349)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:162)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:125)
    at org.netbeans.modules.cnd.modelimpl.parser.ParserProviderImpl$Antlr2CppParser.render(ParserProviderImpl.java:240)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._reparse(FileImpl.java:993)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsedImpl(FileImpl.java:752)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:617)
[catch] at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:148)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:74)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:92)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1425)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:59)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:294)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2038)
Comment 1 petrk 2015-02-10 16:36:23 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/e0fbc7cb6f87
Comment 2 Quality Engineering 2015-02-11 03:34:16 UTC
Integrated into 'main-silver', will be available in build *201502110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e0fbc7cb6f87
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #250325 - AssertionError: T::foo in EnumForwardDeclarationImpl.<init>(EnumForwardDeclarationImpl.java:108)