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 193122 - AssertionError at org.netbeans.modules.cnd.modelimpl.csm.BuiltinTypes$BuiltinImpl.getName
Summary: AssertionError at org.netbeans.modules.cnd.modelimpl.csm.BuiltinTypes$Builtin...
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 11:47 UTC by Exceptions Reporter
Modified: 2011-02-07 14:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174412


Attachments
stacktrace (3.10 KB, text/plain)
2010-12-09 11:47 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-12-09 11:47:54 UTC
This issue was reported manually by vv159170.
It already has 1 duplicates 


Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Linux

User Comments:
GUEST: Typing out a typedef, at the time of the problem "typedef unsigned short int ushorr", and I may have just pressed backspace as it popped up.

C++ Application project, working in initial main.cpp




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.cnd.modelimpl.csm.BuiltinTypes$BuiltinImpl.getName(BuiltinTypes.java:94)
   at org.netbeans.modules.cnd.modelimpl.csm.TypeFactory.createType(TypeFactory.java:227)
   at org.netbeans.modules.cnd.modelimpl.csm.TypeFactory.createType(TypeFactory.java:156)
   at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.renderTypedef(AstRenderer.java:949)
   at org.netbeans.modules.cnd.modelimpl.csm.deep.DeclarationStatementImpl$DSRenderer.render(DeclarationStatementImpl.java:199)
   at org.netbeans.modules.cnd.modelimpl.csm.deep.DeclarationStatementImpl.render(DeclarationStatementImpl.java:107)
Comment 1 Exceptions Reporter 2010-12-09 11:47:57 UTC
Created attachment 103826 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2010-12-15 21:54:37 UTC
let's evaluate exceptions as P2 issues
Comment 3 Vladimir Voskresensky 2010-12-20 18:53:18 UTC
I've added assert to see where incorrect object can be created
http://hg.netbeans.org/cnd-main?cmd=changeset;node=1c3f2f1a99cf
http://hg.netbeans.org/cnd-main?cmd=changeset;node=59b816effcd3
Comment 4 Quality Engineering 2010-12-21 08:04:19 UTC
Integrated into 'main-golden', will be available in build *201012210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1c3f2f1a99cf
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #193122 -  AssertionError at org.netbeans.modules.cnd.modelimpl.csm.BuiltinTypes$BuiltinImpl.getName
-- added assert in places where incorrect name could be created
Comment 5 nnnnnk 2011-02-07 14:07:33 UTC
We do not have enough information to fix this bug.
But new assertion added, so let's wait for new exception report.