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 238668 - Code Completion does not suggest Class method implementation in the source file.
Summary: Code Completion does not suggest Class method implementation in the source file.
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 16:44 UTC by Alexander Pepin
Modified: 2013-12-07 04:23 UTC (History)
1 user (show)

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 Alexander Pepin 2013-11-21 16:44:57 UTC
Steps to reproduce:
- create a simple C++ application with header and source files
newClass.h
#ifndef NEWCLASS_H
#define	NEWCLASS_H

class newClass {
public:
    virtual int getVal();
protected:
    int val;
};

class MyClass: newClass{
public:
    virtual int getVal();

};

#endif	/* NEWCLASS_H */
////////////////////////////////////////////

newClass.cpp

#include "newClass.h"

int main(int argc, char** argv) {

    MyClass c;
    c.getVal();
    return 0;
}
////////////////////////////////////////////

- call code completion in newClass.cpp, it suggests to add implementation for both MyClass::getVal() and newClass::getVal() methods
- add implementation for MyClass::getVal()
- call code completion again
Result: Code completion list does not contain "newClass::getVal() - implement int" any more.
Comment 1 Alexander Simon 2013-11-27 12:47:11 UTC
fixed, change set:
1df6ab661d61
Comment 2 igor_nikiforov 2013-12-02 14:32:52 UTC
Integrated to releases:
  8f04906898b1
Comment 3 Quality Engineering 2013-12-05 01:33:44 UTC
Integrated into 'releases/release74', will be available in build *201312042201* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/8f04906898b1
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #238668 Code Completion does not suggest Class method implementation in the source file.
(transplanted from 1df6ab661d61ca768bf8e3ad7ed965af3f98e530)
Comment 4 Alexander Pepin 2013-12-06 15:15:23 UTC
verified in OSS IDE built on 7.4 patch2 candidate
Comment 5 Quality Engineering 2013-12-07 04:23:04 UTC
Integrated into 'main-silver', will be available in build *201312070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f0ccbd7af6e4
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #238668 Code Completion does not suggest Class method implementation in the source file.
(transplanted from 1df6ab661d61ca768bf8e3ad7ed965af3f98e530)