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 102583 - Hyperlink works wrong with declarations of unnamed namespaces
Summary: Hyperlink works wrong with declarations of unnamed namespaces
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 09:04 UTC by soldatov
Modified: 2007-06-22 10: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 soldatov 2007-04-26 09:04:18 UTC
Steps:
- Create Quote sample
- Open quote.cc file
- Select "fetchCustomersList", "outCustomersList" or "getDiscountFor" functions
in "main" function (104, 110, 113 lines)
- Press Alt-G (hyperlink)
==> 'Cannot open element "fetchCustomersList"' message appears

Or other sample:
-------------------------------------------
#include <iostream>
 
using namespace std;
 
namespace {
    void f() {
        cout << "Hello!!!" << endl; 
    }
}
 
int main()
{
   f();
   return 0;
}
-------------------------------------------
Hyperlink on "f" function doesn't work
Comment 1 Vladimir Voskresensky 2007-06-14 18:23:41 UTC
fixed + tests are added
- correctly handle visibility of unnamed namespaces

the necessary part of modelimpl was fixed by adding CsmUsingResolver service
cvs log:
Checking in cplusplus/ext/CsmCompletionQuery.java;
/shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/cplusplus/ext/CsmCompletionQuery.java,v
 <--  CsmCompletionQuery.java
new revision: 1.2.2.15.2.23.4.13; previous revision: 1.2.2.15.2.23.4.12
done
Checking in csm/CompletionResolverImpl.java;
/shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/csm/CompletionResolverImpl.java,v 
<--  CompletionResolverImpl.java
new revision: 1.2.2.12.4.12.4.3; previous revision: 1.2.2.12.4.12.4.2
done
Comment 2 soldatov 2007-06-22 10:00:29 UTC
Closed. Verified in build 20070622