Bug 77690 - [move member type] does not supply type parameter in field of enclosing instance [refactoring]
Summary: [move member type] does not supply type parameter in field of enclosing insta...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 12:00 EST by Christof Marti CLA
Modified: 2023-05-01 20:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christof Marti CLA 2004-11-03 12:00:52 EST
I200411022000

Move Member Type to New File on NestedInner results in type references
Outer.Inner<I> instead of Outer<O>.Inner<I> in the new CU:

package test4;
public class Outer<O> {
	public class Inner<I> {
		public class NestedInner<N> {
			private void innerMethod() {
			}
		}
	}
}
Comment 1 Dirk Baeumer CLA 2004-11-03 16:33:55 EST
Looks like a corner case.

Time permitted.
Comment 2 Omry Yadan CLA 2005-01-25 07:33:02 EST
another example of a similar (?) problem, this time with no templates:
moving the InnerClass to a file leaves uncompiling code.

public class Test
{
	public Test()
	{
		new InnerClass(new InnerClass.Interface()
		{
			public void foo()
			{
			}
		});
	}
	
	public static class InnerClass
	{
		public static interface Interface
		{
			public void foo();
		}
		
		public InnerClass(Interface interface1)
		{
		}
	}
}
Comment 3 Eclipse Genie CLA 2019-04-29 11:53:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Dani Megert CLA 2019-04-30 05:25:40 EDT
Still an issue in 4.12 M1.
Comment 5 Eclipse Genie CLA 2021-04-20 15:30:42 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2023-05-01 20:22:14 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.