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 238384 - Introduce variable applied to the local variable declaration breaks code
Summary: Introduce variable applied to the local variable declaration breaks code
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on: 238386
Blocks:
  Show dependency tree
 
Reported: 2013-11-14 17:10 UTC by Alexander Pepin
Modified: 2013-12-06 14:36 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-14 17:10:30 UTC
Steps to reproduce:

- create simple piece of code:

int main(int argc, char** argv) {
    int x = 1;

    return 0;
}

- select 'x'
- do "Introduce variable"
Result: we got broken code
int main(int argc, char** argv) {
    int x = x;
    int x = 1;

    return 0;
}
Comment 1 Alexander Simon 2013-11-15 12:13:52 UTC
fixed, change set:
f5e49a001dc4
Comment 2 Vladimir Voskresensky 2013-12-02 15:04:37 UTC
http://hg.netbeans.org/releases/rev/56d2537839a9
Comment 3 Alexander Pepin 2013-12-06 14:36:19 UTC
verified in OSS IDE built on 7.4 patch2 candidate