Bug 273751

Summary: [1.5][compiler] Compiler allows private inner class as a <T> parameter when javac doesn't
Product: [Eclipse Project] JDT Reporter: Remy Suen <remy.suen>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.5   
Target Milestone: 3.5 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Remy Suen CLA 2009-04-26 17:54:59 EDT
Build id: I20090421-0930

package c.v;
public class A<T> {
}

package c.v;
public class B extends A<B.Secret> {
  private class Secret {};
}

Found this problem while surfing stackoverflow.com. ECJ is fine but javac 1.6.0_12 doesn't like it.

http://stackoverflow.com/questions/757623/bug-in-eclipse-compiler-or-javac
Comment 1 Kent Johnson CLA 2009-05-05 13:06:35 EDT

*** This bug has been marked as a duplicate of bug 185422 ***
Comment 2 Olivier Thomann CLA 2009-05-14 12:21:06 EDT
Verified for 3.5RC1 using I20090511-2000.