Bug 3688 - Extract method generates fully qualified type although is shouldn't (1GE4VDV)
Summary: Extract method generates fully qualified type although is shouldn't (1GE4VDV)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:59 EDT by Dirk Baeumer CLA
Modified: 2002-01-23 12:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-10 22:59:14 EDT
Extract the following from ExtractMethodTests:

	private IPackageFragment getInvalidSelectionPackage() throws JavaModelException {
		/*]*/if (fInvalidSelectionPackage == null)
			fInvalidSelectionPackage= getRoot().createPackageFragment("invalidSelection", true, null);/*[*/
					
		return fInvalidSelectionPackage;
	}


	protected void extracted() throws org.eclipse.jdt.core.JavaModelException {
		if (fInvalidSelectionPackage == null)
			fInvalidSelectionPackage= getRoot().createPackageFragment("invalidSelection", true, null);
	}

	Note, that the throw clause has a fully qualified type name.

NOTES:

DB (30.05.2001 23:31:14)
	Waiting for answer to 1GEJYAJ: ITPJCORE:WIN2000 - Binding of QualifiedNameReference is null
Comment 1 DJ Houghton CLA 2001-10-24 07:16:57 EDT
PRODUCT VERSION:
	109
	
Comment 2 Dirk Baeumer CLA 2001-12-07 03:59:04 EST
Extract method now adds imports using the new ImportEdit.

Fixed in build > 20011207
Comment 3 Martin Aeschlimann CLA 2002-01-23 12:41:34 EST
Verified >20122. JRT.