Bug 103783 - No warnings should be given on when type parameters hide inaccessible types
Summary: No warnings should be given on when type parameters hide inaccessible types
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.2 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 04:45 EDT by Christian Plesner Hansen CLA
Modified: 2006-02-05 15:40 EST (History)
0 users

See Also:


Attachments

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