| Summary: | [inline] "Inline Local Variable" into inner class fails when value is "this" | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | David Saff <david> |
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bmiller, Brian.Miller, till_bay |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
Moving to new owner *** Bug 16741 has been marked as a duplicate of this bug. *** This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
In 3.1. Code: public class Foo { public void bar() { final Foo foo = this; new Runnable() { public void run() { foo.baz(); } }; } private void baz() { } } Select foo, and Refactor > Inline. The resulting code: public void bar() { new Runnable() { public void run() { this.baz(); } }; } This should be: public void bar() { new Runnable() { public void run() { Foo.this.baz(); } }; }