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.
Summary: | Introduced variable is added in front of others declaration | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Hints | Assignee: | Jan Lahoda <jlahoda> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jglick |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Prox
2005-06-16 09:37:36 UTC
The whole method: public void method() { int i=1; int b; b=/*begin*/ i+1 /*end*/; } Selection marks by /*begin*/ and /*end*/ Result: public void method() { int lokalek = i + 1; //here is error int i=1; int b; b=/*begin*/ lokalek /*end*/; } *** Issue 60021 has been marked as a duplicate of this issue. *** *** Issue 70208 has been marked as a duplicate of this issue. *** IMHO a P2: a compilable source file is converted to an uncompilable source file by this transformation, with no warning; and not just in obscure border cases, but usually. This functionality should be probably implemented differently - probably as a hint (similar to surround with...) Anonymous to inner, Introduce variable and Extract method features are now (or will be) implemented in java/hints module. Should not happen with the new impl. of introduce variable. verified |