Bug 77690

Summary: [move member type] does not supply type parameter in field of enclosing instance [refactoring]
Product: [Eclipse Project] JDT Reporter: Christof Marti <christof_marti>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, nikolaymetchev
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

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.