Bug 97442 - [code manipulation] Smart paste adds import for type parameter
Summary: [code manipulation] Smart paste adds import for type parameter
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 08:27 EDT by David Saff CLA
Modified: 2005-06-10 06:57 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 David Saff CLA 2005-05-31 08:27:01 EDT
In RC1.  Create class A:

import java.util.List;

public class A {
	class Counter<T, L extends List<T>> {
		private L _attribute;
	}
}

Now, copy the inner class "Counter", and paste it into empty class B:

public class B {
  // PASTE HERE
}

imports are added:

import L;

import java.util.List;

"import L" is wrong.
Comment 1 Dirk Baeumer CLA 2005-05-31 08:36:55 EDT
Martin, opt to fix this for 3.1
Comment 2 Martin Aeschlimann CLA 2005-06-06 03:51:37 EDT
filed bug 98473 aginst jdt.core, but added extra checks as workaround > 20050606
Comment 3 Tobias Widmer CLA 2005-06-10 06:57:12 EDT
Verified using I20050610-0010