Bug 230466 - The type <TYPE> in not visible error on correct code
Summary: The type <TYPE> in not visible error on correct code
Status: RESOLVED DUPLICATE of bug 216692
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-06 15:16 EDT by Sergey Elin CLA
Modified: 2008-05-07 05:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Elin CLA 2008-05-06 15:16:23 EDT
Here is simplified working classes which compiles by Suns Java (JDK 1.6u6) and Eclipse SDK 3.4 M7 but not compiles in Europa JEE 3.3.2:

package e;

public abstract class AbstractClass<E> {

	protected abstract void method1();
}

package q;

import java.util.Map;


public abstract class AbstractTest<T> {

	protected class InnerClass extends AbstractClass<InnerClass>{
		
		public void innerMethod() {
			System.out.println("innerMethod");
		}

		@Override
		protected void method1() {
			System.out.println("method1");
			
		}
	}
	
	protected Map<String, InnerClass> records;
	
	public abstract void method(); 
}

package w;
import q.AbstractTest;

public class Test extends AbstractTest<Test> {

	@Override
	public void method() {
	    // Error here
		InnerClass inner = records.get("1");
	}

}
Comment 1 Philipe Mulet CLA 2008-05-07 05:01:12 EDT
Testcase is missing an import in AbstractTest ("import e.AbstractClass;").
Added GenericTypeTest#test1316
Comment 2 Philipe Mulet CLA 2008-05-07 05:11:43 EDT
This is a dup of bug 216692.
Fix is available in 3.4 and in 3.3 maintenance branch post 3.3.2.
A patch is posted at: http://www.eclipse.org/jdt/core/r3.3/index.php#UPDATES
(use the 3.3.3 preview)


*** This bug has been marked as a duplicate of bug 216692 ***