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 212892 - Cannot refactor unresolved elements on Change Function parameters from Navigator
Summary: Cannot refactor unresolved elements on Change Function parameters from Navigator
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 11:29 UTC by Alexander Pepin
Modified: 2012-05-25 05:48 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 Alexander Pepin 2012-05-23 11:29:22 UTC
This is a regression.

Steps to reproduce:
- modify Welcome sample in the following way
#include <iostream>

void go();

int main(int argc, char**argv) {
    // Prints welcome message...
    go();
    // Prints arguments...
    if (argc > 1) {
        std::cout << std::endl << "Arguments:" << std::endl;
        for (int i = 1; i < argc; i++) {
            std::cout << i << ": " << argv[i] << std::endl;
        }
    }
    
    return 0;
}

void go(){
    std::cout << "Welcome ..." << std::endl;
    
}

- in Navigator window call context menu on "go()" or main() and choose "Change Function Parameters..."

Result: "Change Function Parameters" window reports "Cannot refactor unresolved elements" error.
Comment 1 Vladimir Voskresensky 2012-05-23 16:39:43 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/4314e6225d4e
Comment 2 Quality Engineering 2012-05-25 05:48:46 UTC
Integrated into 'main-golden', will be available in build *201205250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4314e6225d4e
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #212892 - Cannot refactor unresolved elements on Change Function parameters from Navigator
- lookup can not be "fixed", so introduced InstanceContent based lookup and replace object when node does resetNode activity