Bug 103783

Summary: No warnings should be given on when type parameters hide inaccessible types
Product: [Eclipse Project] JDT Reporter: Christian Plesner Hansen <stderr>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: 3.2 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Christian Plesner Hansen CLA 2005-07-14 04:45:30 EDT
Currently, a warning is always issued whenever a type parameter hides another
type.  In some cases, however, the type that is being hidden is inaccessible. 
For instance, a static inner class has no access to the type parameters of the
enclosing class.

class C<X> {
  static class SubC<X> extends C<X> { // warning
     ...
  }
}

It would be nice if no warnings were issued in those cases of if there was an
option to turn those warnings off without affecting all hidden-by-type-variable
warnings.
Comment 1 Philipe Mulet CLA 2006-02-05 15:40:50 EST
This was resolved a while ago.