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 244628 - "Generate Constructor" wizard doesn't display protected constructors
Summary: "Generate Constructor" wizard doesn't display protected constructors
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 14:40 UTC by soldatov
Modified: 2014-06-05 14:04 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 2014-05-21 14:40:31 UTC
class A {
public:
    A() : ai(0), af(0.0f) {}
private:
    A(int a) : ai(a), af(0.0f) {}
protected:
    A(float f) : ai(0), af(f) {}
    float af;
    int ai;
};

class B : public A {
public:

    int bi;
    float bf;
};

int main() {
//    B b(1.0f);
    return 0;
}

Scenario:
- Press Alt-Ins in 'class B'
- Select "Constructor..." menu item
==> I can select A() constructor only (I expect "A(float f)" also)
Comment 1 Alexander Simon 2014-05-22 05:56:45 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/da10e310a5d4
Comment 2 Quality Engineering 2014-05-30 02:22:13 UTC
Integrated into 'main-silver', will be available in build *201405300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/da10e310a5d4
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244628 "Generate Constructor" wizard doesn't display protected constructors
Comment 3 Quality Engineering 2014-06-04 15:26:54 UTC
Integrated into 'releases/release80', will be available in build *201406041415* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/9112d00225fd
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #244628 "Generate Constructor" wizard doesn't display protected constructors
(transplanted from da10e310a5d4d1449e6931aeb6ddeef1cbbfac0e)
Comment 4 soldatov 2014-06-05 14:04:35 UTC
verified in NetBeans IDE 8.0 patch2 (Build 201406041415)