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.
Code: #include <iostream> using namespace std; int main(int argc, char** argv) { 1 + 2; return 0; } Scenario: - Select "1 + 2" - Press Alt+Shift+V (Refactor|Introduce Variable...) ==> I see Name: variable Type: basic_string<int,_Traits,_Alloc> P.S. If I comment "using namespace std" line I see correct type in Introduce Variable window
Code model returns wrong type of a selection.
Fixed in http://hg.netbeans.org/cnd-main/rev/cd66f4f1a673
Integrated into 'main-silver', will be available in build *201607120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/cd66f4f1a673 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #261006 - "using namespace std" breaks "introduce variable" in simple scenario
Integrated into 'main-silver', will be available in build *201607130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/bddd90102a3b User: Petr Kudryavtsev <petrk@netbeans.org> Log: Additional fix for #261006 - "using namespace std" breaks "introduce variable" in simple scenario