Bug 28243 - extract local breaks code
Summary: extract local breaks code
Status: RESOLVED DUPLICATE of bug 35788
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-13 04:41 EST by Christof Marti CLA
Modified: 2003-04-09 05:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christof Marti CLA 2002-12-13 04:41:21 EST
reproducible in I20021210 with the following steps and code:

- select the second "ch.length"
- extract local

public class Test {

	public Test(int a, int b, boolean c) {
		char[] ch= new char[a];
		if (c) {
			ch= new char[b];
			System.out.println(ch.length);
		} else {
			System.out.println(ch.length); //extract local "ch.length" results in
non-equivalent code
		}
	}

}
Comment 1 Adam Kiezun CLA 2002-12-13 04:51:08 EST
known limitation
Comment 2 Adam Kiezun CLA 2002-12-18 07:55:09 EST
not 2.1
Comment 3 Adam Kiezun CLA 2003-04-09 05:43:35 EDT
reop
Comment 4 Adam Kiezun CLA 2003-04-09 05:44:07 EDT

*** This bug has been marked as a duplicate of 35788 ***