Summary: | Refactoring - variable extraction can lead to incorrect code (1GEWDNW) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
Component: | UI | Assignee: | Dirk Baeumer <dirk_baeumer> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P2 | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | Windows NT | ||
Whiteboard: |
Description
Philipe Mulet
2001-10-10 23:01:26 EDT
moved to 'active' PRODUCT VERSION: SDK 119 works for me in the latest 20020115: Now, by extracting "i = 1;" I get package p1; import java.io.*; public class X { void foo(final int out){ int i; if (out > 5){ asd(); } else { i = 2; } i++; } protected void asd() { int i; i = 1; } } asd() doesn't do anything useful and it changes the behaviour of foo. See previous comment Fixed in build > iX-20021115 |