JDK-6581226 : Reconsider Comparable generifications in javax.naming.*
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.naming
  • Affected Version: 7
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2007-07-16
  • Updated: 2011-02-04
Related Reports
Relates :  
Relates :  
Description
As part of the non-core API generification in Tiger (4964490), implementation of Name in javax.naming were generified as Comparable<Object> rather than Comparable<ConcreteNameClass>.  However, the classes in question are actually only Comparable against themselves, rather than against Object or the Name interface.  Therefore, the desired compile-time checking cannot occur.

However, a complicating factor is that the classes in question are not final.