Bug 199063 - [Extract Class] Update fails in switch blocks
Summary: [Extract Class] Update fails in switch blocks
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M1   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-08-07 08:27 EDT by Karsten Becker CLA
Modified: 2007-08-09 04:45 EDT (History)
1 user (show)

See Also:


Attachments
Patch (4.12 KB, patch)
2007-08-07 08:36 EDT, Karsten Becker CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Becker CLA 2007-08-07 08:27:40 EDT
package p;

public class SwtichCaseUpdates {
	private int test;
	private void foo() {
		switch (test) {
		case 5: test=7;
				break;
		case 7: test=5;
		}
	}
}

Use Extract Class on all fields using getters&setters. The test=7 is said to be not updateable which is not the case.
Comment 1 Karsten Becker CLA 2007-08-07 08:36:23 EDT
Created attachment 75534 [details]
Patch
Comment 2 Benno Baumgartner CLA 2007-08-08 04:31:52 EDT
Fixed > I20070807-0010

New feature
Trivial fix
Comment 3 Benno Baumgartner CLA 2007-08-09 04:40:43 EDT
start verification...
Comment 4 Benno Baumgartner CLA 2007-08-09 04:45:14 EDT
verified in I20070808-1800