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 109356 - AssertionError in CastUtils when parsing boost
Summary: AssertionError in CastUtils when parsing boost
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 12:39 UTC by Vladimir Kvashin
Modified: 2007-11-23 10:21 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 2007-07-11 12:39:20 UTC
java.lang.AssertionError
        at org.netbeans.modules.cnd.modelimpl.csm.CastUtils.getFunctionName(CastUtils.java:48)
        at org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl.findFunctionName(FunctionImpl.java:256)
        at org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl.initName(FunctionImpl.java:208)
        at org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl.<init>(FunctionImpl.java:84)
        at org.netbeans.modules.cnd.modelimpl.csm.MethodImpl.<init>(MethodImpl.java:46)
        at org.netbeans.modules.cnd.modelimpl.csm.MethodImpl.<init>(MethodImpl.java:42)
        at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl$ClassAstRenderer.render(ClassImpl.java:190)
        at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl.init(ClassImpl.java:321)
        at org.netbeans.modules.cnd.modelimpl.csm.ClassImplSpecialization.init(ClassImplSpecialization.java:47)
        at org.netbeans.modules.cnd.modelimpl.csm.ClassImplSpecialization.create(ClassImplSpecialization.java:53)
        at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:112)
        at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:62)
        at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:62)
        at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:62)
        at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:295)
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:465)
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:432)
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:235)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:59)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)

when parsing boost_1_33_1/boost/mpl/aux_/preprocessed/msvc60/and.hpp
Comment 1 Vladimir Voskresensky 2007-07-11 17:04:52 UTC
fixed IZ#109356: AssertionError  in CastUtils when parsing boost
- removed assert to safely handle incomplete AST

cvs log:
Checking in CastUtils.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/CastUtils.java,v  <--  CastUtils.java
new revision: 1.1.2.1.4.2; previous revision: 1.1.2.1.4.1
done