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 141108 - Code model can not find context in the case function definition and declaration use different forms
Summary: Code model can not find context in the case function definition and declarati...
Status: RESOLVED DUPLICATE of bug 145037
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Leonid Lenyashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 05:28 UTC by Vladimir Kvashin
Modified: 2008-09-12 20:18 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 2008-07-22 05:28:32 UTC
This is similar to http://www.netbeans.org/issues/show_bug.cgi?id=76032
The root of the evil is absence of functions canonical signatures.
In the example below, within the operator string definition,
code model can not find context,
because it is declared as operator std::string, and defined as operator string()

#include <string>
using namespace std;

class UpdateQuery {
    string table;
    operator std::string() const;
};

UpdateQuery::operator string() const {
    string q = "UPDATE " + table + " SET "; // table unresolved
    return q;                               // code model can not fund context
}
Comment 1 nnnnnk 2008-09-12 20:18:36 UTC

*** This issue has been marked as a duplicate of 145037 ***