Bug 230466

Summary: The type <TYPE> in not visible error on correct code
Product: [Eclipse Project] JDT Reporter: Sergey Elin <elinsn>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.3.2   
Target Milestone: 3.4 M5   
Hardware: PC   
OS: All   
Whiteboard:

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 ***