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 238383 - The second call of "introduce variable" breaks code
Summary: The second call of "introduce variable" 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:
Blocks:
 
Reported: 2013-11-14 17:06 UTC by Alexander Pepin
Modified: 2013-12-06 14:35 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:06:16 UTC
There problem is that "In place" editor is activated after introducing variable together with a new "Introduce variable" hint.

Steps to reproduce:

- create simple piece of code:

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

    return 0;
}

- select 'x'
- do "Introduce variable"
- the tip is still active so do "Introduce variable" again
Result: we got broken code
int main(int argc, char** argv) {
    int  = x;
    iint x = x;
    nt  x= 1;

    return 0;
}
Comment 1 Alexander Simon 2013-11-15 12:14:57 UTC
fixed, change set:
f5e49a001dc4
Comment 2 Alexander Pepin 2013-12-06 14:35:45 UTC
verified in OSS IDE built on 7.4 patch2 candidate