Community
Participate
Working Groups
(Thanks to Yilong Li for helping to find this bug) Steps to reproduce: 1. Invoke "Extract Method" on "(t = n()) == null" in code below 2. There is a compilation error in the resulting file. class T { } public class ExtractMethodBug { void m() { T t; while ((t = n()) == null); run(t); } void run(T t) { } T n() { return null; } }
The refactoring should find out that t is written in the extracted expression and that it is read afterwards in m(). Therefore, t should also be returned from the extracted method, which makes the return value ambiguous.
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.