Bug 286137

Summary: [1.5][compiler] Java compiler error(Error for code can be compiled by javac command)
Product: [Eclipse Project] JDT Reporter: Frank Chen <babyfish-ct>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: amj87.iitr, Olivier_Thomann, pwebster
Version: 3.4   
Target Milestone: 3.6 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frank Chen CLA 2009-08-10 12:14:59 EDT
Build ID: I20080617-2000

Steps To Reproduce:
package mypackage;

class A<E> {
	class Inner {
		E f() { return null; }
	}
}

class B<E> extends A<E> {
	
}

class C_OK<E> extends B<E> {
	class Inner extends A<E>.Inner {
		E f() {
			return null;
		}
	}
}

class C_NotOK<E> extends B<E> {
	class Inner extends B<E>.Inner {
		E f() {
			return null;
		}
	}
}


More information:
If use javac command of jdk to compile these code, all the classes is ok; but if use eclipse, the method "C_NotOK$Inner.f " of "C_NotOK" can not be compiled successfully.
Comment 1 Olivier Thomann CLA 2009-08-10 15:36:33 EDT
This seems to be fixed using 3.5.0.
Closing as WORKSFORME.
Comment 2 Ayushman Jain CLA 2009-09-15 03:28:25 EDT
Verified for 3.6M2 using build I20090914-1800
Comment 3 Olivier Thomann CLA 2009-09-15 16:05:43 EDT
Verified.