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 92138 - Class view works wrong for template specializations
Summary: Class view works wrong for template specializations
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 5.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on: 77426 98188
Blocks: 87672
  Show dependency tree
 
Reported: 2007-01-09 16:53 UTC by Maria Tishkova
Modified: 2013-05-17 14:00 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 Maria Tishkova 2007-01-09 16:53:22 UTC
1. Create new Application Project
2. Add new C++ Header file to Header Files logical folder
3. create the following content in header file created:
template<> struct arg<1>
{
   
    typedef arg<2> next;
   
};
   template<> struct arg<2>
{
   
    typedef arg<3> next;
   
};
 
 template<> struct arg<3>
{
   
    typedef arg<4> next;
   
};

===> You will see 1 instance of arg<> in class view, and double click on any
node will lead you to the last declaration.

P.S. this example is similar to header files used in boost

Quick Navigator shows 3 instances and works fine.
Comment 1 Vladimir Kvashin 2007-04-11 18:15:06 UTC
Fixed:

/shared/data/ccvs/repository/cnd/modelapi/src/org/netbeans/modules/cnd/api/model/CsmTemplate.java,v
 <--  CsmTemplate.java
new revision: 1.2.2.1.6.2; previous revision: 1.2.2.1.6.1

/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/AstUtil.java,v
 <--  AstUtil.java
new revision: 1.2.2.9.4.6; previous revision: 1.2.2.9.4.5

/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/AstRenderer.java,v
 <--  AstRenderer.java
new revision: 1.2.2.18.4.18; previous revision: 1.2.2.18.4.17

/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/Attic/TemplateUtils.java,v
 <--  TemplateUtils.java
new revision: 1.1.2.1; previous revision: 1.1

/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/ClassImpl.java,v
 <--  ClassImpl.java
new revision: 1.2.2.4.4.22; previous revision: 1.2.2.4.4.21

/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/Attic/ClassImplSpecialization.java,v
 <--  ClassImplSpecialization.java
new revision: 1.1.2.1; previous revision: 1.1

/shared/data/ccvs/repository/cnd/classview/src/org/netbeans/modules/cnd/classview/model/ClassNode.java,v
 <--  ClassNode.java
new revision: 1.2.2.2.8.5; previous revision: 1.2.2.2.8.4