Bug 3688

Summary: Extract method generates fully qualified type although is shouldn't (1GE4VDV)
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Dirk Baeumer <dirk_baeumer>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Windows 2000   
Whiteboard:

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.