Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 80317 - Class View displays item from another project
Class View displays item from another project
Product: cnd
Classification: Unclassified
Component: Navigation
All All
: P1 (vote)
: 6.x
Assigned To: Alexander Simon
Depends on:
  Show dependency treegraph
Reported: 2006-07-14 15:30 UTC by Maria Tishkova
Modified: 2013-05-17 14:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Maria Tishkova 2006-07-14 15:30:43 UTC
NetBeans 5.0 and cnd  from for July
14th were used

OS: solaris x86 (sqao25)

Steps to reproduce:

1. Run netbeans with fresh user dir
2. Create Makefile project for litesql (add source folders src and include)
3. Create Welcome sample project with the same project location litesql project has
4. Wait paring is finished
5. Open Class View -> looks OK
6. Open welcome.h header file and add the following lines:
class Test{
 int g;
save welcome.h file --> main function is doubled in class view
7. Open datetime.cpp file from folder library of litesql project -> Look at
class view for Welcome project: namespace litesql is appeared!!!

And if you will now open files from litesql project all declaration from opened
file will be appeared in Welcome project node of Class View. Even if close Class
View and open it again it will be still broken for Welcome project.
Comment 1 soldatov 2006-08-15 10:24:12 UTC
I can reproduce it more simple way:

- Create "Args" sample project
- Select "printf" function in args.c file
- Press Alt-g (hyperlink)
- Open Class View tab
==> Class View contain items from stdio.h (stdio_iso.h) into "Args" node
- Move cursor at 32-th line, type "pr" and press ctrl-space (code completion)
==> Code Comletion list contain 2 "printf()" items
Comment 2 Alexander Simon 2006-09-07 15:20:03 UTC
fixed by:
 - new method resolveFile for CsmModel
 - moved responsibility on resolving file from CsmUtilities to ModelImpl

CVS log:
Checking in modelutil/src/org/netbeans/modules/cnd/modelutil/;
new revision:; previous revision:
Checking in
new revision:; previous revision:
Checking in modelapi/src/org/netbeans/modules/cnd/api/model/;
new revision:; previous revision:

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo