Bug 286137 - [1.5][compiler] Java compiler error(Error for code can be compiled by javac command)
Summary: [1.5][compiler] Java compiler error(Error for code can be compiled by javac c...
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.6 M2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-10 12:14 EDT by Frank Chen CLA
Modified: 2009-09-15 16:05 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.