Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6581226

Reconsider Comparable generifications in javax.naming.*

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • None

      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.

            Unassigned Unassigned
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: