Reconsider Comparable generifications in javax.naming.*

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: 7
    • Component/s: 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.

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

              Created:
              Updated:
              Imported:
              Indexed: