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 102439 - Hyperlink doesn't work with STL string class
Summary: Hyperlink doesn't work with STL string class
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-25 09:13 UTC by soldatov
Modified: 2007-06-22 10:02 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-25 09:14:08 UTC
Steps:
- Open C++ file with such code:

#include <stdlib.h>
#include <string>

int main(int argc, char** argv) {
    string s;
    return (EXIT_SUCCESS);
}

- Select "string" in "string s;" line and press Alt-g
==> 3 weeks ago it worked correctly. Now "cannot open element 'string'" message
appears.

But If I replace "string" on "std::string" then hyperlink works correctly.
Comment 1 Vladimir Voskresensky 2007-06-14 13:22:19 UTC
this code is not compilable, there should be 

using namespace std;

like:

#include <stdlib.h>
#include <string>

using namespace std;

int main(int argc, char** argv) {
    string s;
    return (EXIT_SUCCESS);
}
Comment 2 Vladimir Voskresensky 2007-06-14 18:23:46 UTC
fixed 
- support using resolving

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 3 soldatov 2007-06-22 10:02:50 UTC
Closed. Verified in build 20070622