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 108305 - Code Completion displays "function()" and "function() const" identical
Summary: Code Completion displays "function()" and "function() const" identical
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-27 16:20 UTC by soldatov
Modified: 2009-12-21 06: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-06-27 16:20:33 UTC
First sample:
- Open this file
-----------------------------------------------

#include <stdlib.h>
#include <vector>
#include <iostream>

using namespace std;


class coord {
public:
    static const int i = 1;
    static int j;
    
    int g() const{
        
        return f();
    }
    
    int f() {
        cout << "returned j\n";
        return j;
    }
    
    int f() const {
        cout << "returned i\n";
        return i;
    }
};

int coord::j = 2;

int main(int argc, char** argv) {
    vector<int> v;
    
    coord c1;
    int i = c1.f();
    int j = c1.g();
    
    return (EXIT_SUCCESS);
}

-----------------------------------------------
- Type "c1." in 'main()' function
==> I see 2 identical 'f() int' items
Comment 1 soldatov 2007-06-27 16:48:05 UTC
Other sample:
- Open this file
---------------------------------------------------------
#include <stdlib.h>
#include <vector>
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
    
    vector<int> v;
    v.begin();
    
    return (EXIT_SUCCESS);
}

---------------------------------------------------------
- Type "v." in 'main()' function
==> I see a lot of similar items in code completion listbox:
...
at(size_type n) reference
at(size_type n) const_reference
back()          const_reference
back()          reference
begin()         const_iterator
begin()         iterator
...
Comment 2 Quality Engineering 2009-12-21 06:00:42 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team