JDK-5070354 : (diag) Add -Xlint:hiding option to javac
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2004-07-01
  • Updated: 2013-08-23
Related Reports
Relates :  
Relates :  
Description
Please implement an option to give warnings when a type variable of a generic method hides a type variable of a surrounding class.

Comments
EVALUATION We recently ran into an instance of this problem: TestX.java:36: type parameter Y is not within its bound class Y1<S extends NumberList<Y>> {} ^ 1 error the Y here is referring to a class that hides a type-variable. See 6977800.
20-08-2010

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
08-09-2004

EVALUATION Yes. ###@###.### 2004-06-30
30-06-2004